Error in creating meetings with Zoom Apps,
API:-
Zoom Apps
Language:-
Python
Framework:-
Django , Django Rest Framework
Code:-
- Views.py
request_headers = {
"Authorization":"Bearer "+access,
"Content-Type":"application/json"
}
target_url = BaseUrl + "/users/me/meetings"
meetingdetails = {"topic": "SF API TESTING",
"type": 2,
"start_time": "2022-12-24T10:21:57",
"duration": 45,
"timezone": "Aisa/Calcutta",
"agenda": "test",
}
response = requests.post(url=target_url,data=meetingdetails,headers=request_headers)
response_data = response
data = {}
print(f"Meeting Data: {response_data}")
data['data'] = response_data
return render(request,'zoom_user_deatils.html',data)
- Urls.py
path('zoom-Authorize/',views.oauthToken,name="zoomAuthorize"),
- Variables defined in views.py
access ---> The access token
BaseUrl---> "https://api.zoom.us/v2"
Expected Output:-
/zoom-Authorize/
is the redirect uri for the OAuth(not specified in above code as it is working fine).
OAuth part is working absolutely fine.
(checked by getting the meetings list as a success response)
This code should auto create the meeting after the OAuth and return the meeting details to the user (raw response data for test).
Error Output:-
<Response [400]>