当前位置: 首页 > 工具软件 > Zoom Page > 使用案例 >

python对zoom的api调用

吉岳
2023-12-01
import http.client
conn = http.client.HTTPSConnection("api.zoom.us")
headers = {
    'authorization': "Bearer [API-token]",
    'content-type': "application/json"
    }
#获取用户
# conn.request("GET", "/v2/users?status=active&page_size=30&page_number=1", headers=headers)
#获取归档文件
# conn.request("GET", "/v2/archive_files&page_size=30&page_number=1", headers=headers)
#获取webinars
# conn.request("GET", "/v2/users/94sOItgPRlC1ZICNY9AS1g/webinars?&page_size=30&page_number=1", headers=headers)
#获取所有registrants
# conn.request("GET", "/v2/webinars/85294605889/registrants?&page_size=30&page_number=1", headers=headers)
#获取单个registrants详细信息
conn.request("GET", "/v2/webinars/85294605889/registrants/Q4EdruqASVWwcuD5QpM49g?&page_size=30&page_number=1", headers=headers)

res = conn.getresponse()
# print(res)
data = res.read()
print(data.decode("utf-8"))

 类似资料: