Using the renewAccessToken function

thepunisher
How do I use the renewAccessToken function in the PHP API to renew the access token? https://github.com/zerodha/phpkiteconnect/blob/master/kiteconnect.php#L346

I tried the following cURL on the command line:
curl -s https://api.kite.trade/session/refresh_token \
-H "X-Kite-Version: 3" \
-d "api_key=" \
-d "refresh_token=" \
-d "checksum=sha256( api_key + access token + api secret )"
It says "Token is invalid or has expired", but the token is still valid and I can very well send quote requests with it.
Tagged:
Sign In or Register to comment.