Thats what I am trying to understand. Do I need to go to the browser to get the access token. Here there is no implementation to get access token programatically.
@sukantk Yes, you need to compulsory go to the browser to obtain request_token, there is no programmatically way to obtain request_token. Then you need to post request_token along with api_key and api_secret, to obtain access_token. Generate access_token once and use it throughout the day, for all API calls.
After a successful login user will be redirected to the endpoint which is specified in the developers console. You can just read the URL for the request token after the login.
It seems like you have given an invalid URL in the Redirect URL field, you can check the description below redirect URL box on the app details page of the developers console, your URL needs to start with https://www.website.com but you seem to have given www.website.com
Check it here.
Yes, you need to compulsory go to the browser to obtain request_token, there is no programmatically way to obtain request_token. Then you need to post request_token along with api_key and api_secret, to obtain access_token.
Generate access_token once and use it throughout the day, for all API calls.
{"status":"error","message":"invalid host","data":null,"error_type":"GeneralException"}
This is my url - https://kite.trade/connect/login?api_key=xxxxx&v=3
It is mandatory by the exchange that a trader has to log in manually at least once a day. We don't recommend automating login.
The error message invalid host in general shows up when client couldn't connect to server.
You can make a video and send it in a private message. We can take a look at this.
You can just read the URL for the request token after the login.
{"status":"error","message":"invalid host","data":null,"error_type":"GeneralException"}
and redirected to this url - https://kite.zerodha.com/connect/login?api_key=w7juflxxxxxxx&sess_id=hvHfBZ81fkrH78jBQqP7TBZslK1iWWUI&skip_session=true
Please provide a solution. I can read whatever you have written above in the docs but thats not working for me.
What is your Redirect_Url?