1

我正在使用 zoomus( https://github.com/prschmid/zoomus/ ) Python 模块通过 Zoom API 创建 Zoom 会议。但是,我确实注意到,在使用 client.meeting.create() 时,我得到了 200(不是 201)的 http 响应代码,我认为这意味着响应成功但没有创建会议。

我在我的 django 应用程序中拨打的电话:

# create Zoom meeting
client = ZoomClient('xxx', 'xxxx')

zoom_format = Event.start_date.strftime("%Y-%m-%dT%H:%M:%SZ")
zoom_meeting = client.meeting.create(topic="Meeting", type=2, start_time=str(zoom_format), duration=30, userId=str(updatedEvent.user.email), agenda="", 
host_id=str(updatedEvent.mentor_user.email))
print(zoom_meeting)

我得到的响应是 200,但它必须是 201 才能实际创建会议:

{
"endpoint": "https://api.zoom.us/v2/users/xxx/meetings",
"response_headers": [
"Set-Cookie: zm_aid=""; Domain=.zoom.us; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly"
],
"date_time": "2020-07-28 06:52:33",
"method": "GET",
"request_body": "N/A",
"response": {
"page_size": 30,
"total_records": 0,
"next_page_token": "",
"meetings": [
]
},
"request_headers": [
"accept-encoding: gzip, deflate",
"accept: */*",
"authorization: ******",
"connection: close",
"user-agent: python-requests/2.24.0"
],
"request_params": [
"user_id: xxx"
],
"http_status": "200"
}

关于我做错了什么的任何想法?看起来唯一需要的信息是我提供的日期和用户 ID。

谢谢你的时间。

4

0 回答 0