@chunsiong.zoom Need some information. For the following scope meeting_token:read:local_recording, should the app be approved if an oauth token is being used.
Using token with s2s is working, but for oauth it is not working for some odd reason, I have added the scopes to my zoom app marketplace too,
same credentials for oauth and s2s are being used.
code is :
'''
meeting_id = form.meeting_id.data
passcode = form.passcode.data
user_id = str(current_user.id)
is_zoom_oauth = session.get('is_zoom_oauth', False)
print(is_zoom_oauth)
token = session.get('zoom_access_token') if is_zoom_oauth else None
if is_zoom_oauth and token:
auth_token = 'Bearer ' + token
print('auth token',token)
else:
token= S2S_Auth()
auth_token = 'Bearer ' + token
response = requests.get(
f'https://api.zoom.us/v2/meetings/{meeting_id}/jointoken/local_recording',
headers={'Authorization': auth_token}
)
print('response',response)
if response.status_code == 200:
join_token = response.json().get('token') # Make sure 'token' is the correct key
else:
print(f"Failed to obtain local recording join token. Status code: {response.status_code}")
return jsonify({'success': False, 'message': f'Failed to obtain local recording join token.
'''
When passed, the response is
response <Response [400]>
Failed to obtain local recording join token. Status code: 400
Status code: {response.status_code}'}), 400
Even on postman if we hit the api with correct headers, response is
{
"code": 4711,
"message": "Invalid access token, does not contain scopes:[meeting_token:read:admin:local_recording, meeting_token:read:local_recording]."
}
But works fine for s2s auth.
Please clarify.