After following all documents and using the same logic , the authentication code is generated but access token is not is been generating after several attempt.
i request you to please guide me and give me dummy code .
i am using node, react.
@Pradeep_Jaiswar @sathya @Amit_Kumar_Sharma
Please refer to the cURL provided in the following thread.
Hi
provide your details in bellow url:
https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id=<your-api-key>&redirect_uri=<your-redirect_uri>
after hitting this url on browser you will get the code.
https://api.upstox.com/v2/login/authorization/token
with this api you need to make POST request with passing following params with Content-Type: application/x-www-form-urlencoded
- code
- client_id (api-key)
- client_secret (api secret
- redirect_uri)
- grant_type (your 6 digit PIN)
this is post request code, i am doing as you said and as document is says.
please check is this correct way or i am doing wrong way
@shanmu @Pradeep_Jaiswar @Hariom_Gohel
Were you able to execute the provided cURL command in Postman and successfully generate the access_token
? Please inform me about the outcome of this cURL execution so that I can assist further.
Thanks!
sir here its i have done but there is showing this message
It seems you haven’t updated the auth code that was shared in the example. Please replace it with the specific auth code you received during the OAuth process and try again.
Thank you!
http://127.0.0.1:3001/?code=orq0Xh
auth code means the redirect_uri and with auth code .
here code means above code
Regarding the /token
API, the terms ‘Authorization code’ and ‘code’ refer to the same thing. Please proceed to execute the cURL using the code
you received as a request parameter.
Thank you!
i have done it sir and code is been entered new , still its error.
can i get code of Node.js of apply
app.post request