Hi There,
we are integrating zoom authentication in our website.
we have create OAuth app from marketplace
after successful authentication, user will redirected to
https://glass.mirobotic.tech/authentication/zoom?code=vy5yl8hHwt_OcVP5NTIQ3OGmdNk3ZSZ6w
and using this code we are trying to get access_token but we are getting error
{
"reason": "Invalid authorization code",
"error": "invalid_grant"
}
below is code by which are making request to get access_token from our server
import requests
url = "https://zoom.us/oauth/token"
payload = "grant_type=authorization_code&code=vy5yl8hHwt_OcVP5NTIQ3OGmdNk3ZSZ6w&redirect_uri=https%3A%2F%2Fglass.mirobotic.tech%2Fauthentication%2Fzoom"
headers = {
'authorization': "Basic ***
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
'postman-token': "2a1e7f38-4ffb-7387-a1af-bfbec5e49203"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
please help on this