I send a token request with the following python and sucessfull get a access token
def get_access_token(url, client_id, client_secret, account_id):
response = requests.post(
url,
data={“grant_type”: “client_credentials”, “account_id”:account_id},
auth=(client_id, client_secret),
)
#return response.json()[“access_token”]
return response
I then want to call zoom API with a token. Ideally to get a list of all recordings that are shown at api.zoom.us/rcording/management but I 1st try to test successful use of the token by calling api.zoom.us/v2/users
authorization_header = ‘Authorization’: ‘Bearer ’
def get_user_list(url, authorization_header, status=‘active’, page_size=30):
post_data = {
‘status’:status,
‘page_size’:page_size
}
response = requests.get(
url=url,
headers=authorization_header,
params=post_data,
auth=(client_id, client_secret)
)
return response
However I get a 124 response saying Invalid Token Access. The app has scope: ‘recording:write:admin user:read:admin recording:read:admin’
reason:
‘Unauthorized’
request:
<PreparedRequest [GET]>
status_code:
401
text:
‘{“code”:124,“message”:“Invalid access token.”}’