You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
517 B
Python

import requests
import json
API_KEY = "mirotalksfu_default_secret"
MIROTALK_URL = "http://localhost:3010/api/v1/join"
headers = {
"authorization": API_KEY,
"Content-Type": "application/json",
}
data = {
"room": "test",
"name": "mirotalksfu",
"audio": "true",
"video": "true",
"notify": "true",
}
response = requests.post(
MIROTALK_URL,
headers=headers,
json=data,
)
print("Status code:", response.status_code)
data = json.loads(response.text)
print("join:", data["join"])