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"))