whereby room
import requests
import json
API_KEY = "YOUR_API_KEY"
data = {
"startDate": "2021-06-07T03:33:00.000Z",
"endDate": "2021-06-08T03:32:00.000Z",
"fields": ["hostRoomUrl"],
}
headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
}
response = requests.post(
"https://api.whereby.dev/v1/meetings",
headers=headers,
json=data
)
print("Status code:", response.status_code)
data = json.loads(response.text)
print("Room URL:", data["roomUrl"])
print("Host room URL:", data["hostRoomUrl"])