create and share are working for me
using python
code i use for share
URL = "https://w2g.tv/rooms/" + streamkey + "/sync_update"
PARAMS = { 'Accept': 'application/json',
'Content-Type': 'application/json',
"w2g_api_key": "<api_key>",
"item_url" : message.content
}
requests.post(url = URL, params = PARAMS)
code for add to playlist
URL = "https://w2g.tv/rooms/" + streamkey + "/playlists/current/playlist_items/sync_update"
PARAMS = { 'Accept': 'application/json',
'Content-Type': 'application/json',
"w2g_api_key": "<api_key>",
"add_items": [{"url": "https://www.youtube.com/watch?v=dMH0bHeiRNg", "title": "Hello World"}]
}
requests.post(url = URL, params = PARAMS)