Creating a request for authorization token in code

Creating a request for authorization token in code

Hello, 

I am trying to create a request in my application code to get the authorization code from Zoho CRM. I have tried to register my application with client-based, server-based and self client as well. But I am unable to grab the authorization code using a request URL. I am trying to use the following URL:

https://accounts.zoho.com/oauth/v2/auth?response_type=code&client_id=<client_id>&scope=<scope>&redirect_uri=<redirect_uri>

But it's still not sending me back the authorization code, instead I am getting some html. The request I am trying to make is being done on the backend and I need a url to send a request to which sends me the code as a response.

Please guide me here as I cannot get any answer in the documentation or forums,

Regards,
Mohsin.