<filename>includoo/graph/video_together.py
import requests

def create_room(video_url=r"https://www.youtube.com/watch?v=3ZRE6uVMDAo"):
    request_url = r"https://w2g.tv/rooms/create.json"
    api_key = "<KEY>"
    r = requests.post(request_url, data={"w2g_api_key": api_key, "share": video_url})
    if r.ok:
        room_key = r.json()["streamkey"]
        response_url = f"https://w2g.tv/rooms/{room_key}"
    else:
        response_url = "https://w2g.tv/rooms/"
    return response_url

#print(create_room())
