Description
I’m trying to list webinar participants in real time from a webinar I scheduled and am currently hosting. To do this, I’m calling the metrics/webinars/{webinarId}/participants endpoint through the OAuth API in Python. I’ve successfully gone through the login/install process for my OAuth Marketplace app, and gotten my access token and tested that it works. I now need to call this endpoint (or, I need to find another way to do list webinar participants in real time, if this will not work).
Error
I get the following response from the Zoom v2 API:
{“code”:4700,“message”:“Invalid access token, does not contain scopes: [dashboard:read:admin, dashboard_webinars:read:admin].”}
Which App Type:
OAuth 2.0
Which Endpoint/s?
metrics/webinars/{webinarId}/participants
How To Reproduce (If applicable)
Run following MWE:
import requests import json baseurl = "https://api.zoom.us/v2/" part = "metrics/webinars/{webinarId}/participants" access_token = "xxxxxxxx" wid = "123456789000" headers = {'content-type': 'application/json', 'Authorization': "Bearer " + access_token} r = requests.post(baseurl + part.format(webinarId=wid), headers=headers) data = json.loads(r.text) print(data)
Additional context
My app has the scopes:
- View your profile information/user_profileDelete
- View your webinars/webinar:readDelete
- View and manage your webinars/webinar:writeDelete
I assume the error is due to missing the “dashboard:read:admin” scope and “dashboard_webinars:read:admin” scopes. How do I add these? I don’t see them on the Scopes page in the Zoom App creation workflow at App Marketplace for my Marketplace OAuth app. Do I need additional permissions?
Thanks!