Skip to main content
Question

clarity on the steps to get the authorization code to then get the refresh token

  • 25 July 2024
  • 1 reply
  • 18 views

Sorry I’m new here but I need assistance, this request to get a authorization url is coming back 200 response and it gives me a link, i click on the link and it goes to my companies actual page and then it says 404. I just added this to the developers → settings → oauth section for uri:‘https://mycompany.com/oauth/callback’ but shoudl this be different?

 

 

import requests


url = "https://platform.ringcentral.com/restapi/oauth/authorize"
params = {
    "client_id": client_id,
    
    "redirect_uri": ‘https://mycompany.com/oauth/callback,
    "response_type": "code"
}

print(client_id)

# Make the POST request
response = requests.post(url, data=params)
print(response)
# Print the response
print(response.status_code)
print(response.text)

 

1 reply

Userlevel 2
Badge

See my response from your other similar question.

Reply