SOLUTION FOR PHP WEB SERVICES IN LOGIN AND OTHER

DAVIDDEEVAN91
HI I NEED SUPPORT FOR PHP WEB SERVICE SUPPORT

HOW TO ACCESS TOKEN AND CREATE LOGIN WEB SERVICES (I FOUND NOTHING RELATED TO THIS)

PLEASE GIVE SUPPORT
  • gaurav_ch
    It is fairly simple and documented here :https://kite.trade/docs/connect/v3/user/

    Anyways, do this:
    <?php $url = 'https://kite.trade/connect/login?v=3&api_key=' . KITE_CONNECT_API_KEY;
    header('Location: '.$url);?>

    User will be sent to the login screen of kite for web. After logging into kite, the server will send the user back to the redirect url which you will give in the dashboard while creating the app. In that script do the following:
    <?php $access_token = $_GET['request_token'];?>
    That's it.
  • kashyapgodhani
    kashyapgodhani edited December 2018
    But can we extend expire time for request token? It asks for new token frequently.
  • gaurav_ch
    the access token is valid till 7:30 am the next day. If the system is asking for access token frequently, then there is either a bug or your code is not optimised.
Sign In or Register to comment.