KITE3.0 request token

dajinkya
Hi,

Last night took dev membershipt

Everytime I run python script my token becomes invalid

data = kite.generate_session("request_token", "secret_key");
kite.set_access_token(data["access_token"])

--- I have to every time regenerate token from URL and manually enter in the script

Also this morning when I passed access key to login URL, it still asked me to enter USER ID and then security questions which I manually do?
Was expecting API key and secret key will not require to do this step, is there anything wrong I am doing here?


Any better way to handle it request token validity?

  • tonystark
    Request token is generating access token. You can use access token for subsequent requests for the entire day. You don't have to generate session every time.
  • dajinkya
    thanks @tonystark , took some time to figure out, but now undercontrol.
This discussion has been closed.