import requests
import json

API_KEY_SECRET = "mirotalkp2p_default_secret"
# MIROTALK_URL = "http://localhost:3000/api/v1/meeting"
MIROTALK_URL = "https://p2p.mirotalk.com/api/v1/meeting"
# MIROTALK_URL = "https://mirotalk.up.railway.app/api/v1/meeting"

headers = {
    "authorization": API_KEY_SECRET,
    "Content-Type": "application/json",
}

response = requests.post(
    MIROTALK_URL,
    headers=headers
)

print("Status code:", response.status_code)
data = json.loads(response.text)
print("meeting:", data["meeting"])
