zerodha / phpkiteconnect

The official PHP client library for the Kite Connect trading APIs
MIT License
43 stars 30 forks source link

Get Request Token for day #26

Closed JEEVAN28 closed 2 years ago

JEEVAN28 commented 2 years ago

I am facing issue in getting request token and access token with the given code. after single request token expires and getting same again is very cumbersome.

Authentication failed: Token is invalid or has expired. Fatal error: Uncaught TokenException (403) 'Token is invalid or has expired.' thrown in C:\xampp\htdocs\kiteconnect\kiteconnect.php on line 899

when I login for request token then it forward to my local url http://127.0.0.1/kiteconnect/

and then finding request token to copy is very difficult.

please assist

regards Jeevan Pendhari

ranjanrak commented 2 years ago

after single request token expires and getting same again is very cumbersome.

You can use the request token once to create access_token and use the same access_token to make request further. This thread explains more. For further queries you can reply on the same mentioned thread.