After Successful Login, I am able to get access_token.
But When I write following Code : include("kiteconnect.php"); $API_KEY = "xxxxxxxxx"; $access_token=$_GET['at']; $kite = new KiteConnect($API_KEY,$access_token); echo "Positions: \n"; print_r($kite->positions());
@kartik.trade Currently we have disabled authentication for websocket so you can't confirm whether the access_token is valid. Can you please try getting access token again and check? also I just want to confirm that you are exchanging request_token you get after login with access_token as given here?
request_token
you get after login withaccess_token
as given here?<?php
// Compute the SHA-256 checksum.
$api_key = "xxxx";
$api_secret = "yyyy";
// Incoming request token from the redirect.
$request_token = $_GET["request_token"];
$checksum = hash("sha256", $api_key . $request_token . $api_secret);
?>
Please Help me.
I also e-mail you my code file. @vivek