☰
Login
Signup
Home
›
General
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
January 2021
rakeshr
Facing issue in WebSocket streaming with Kite Connect API PHP client
akashchopda555
January 2021
in
General
Hello sir,
require_once(APPPATH . 'third_party' . DS . 'kites' . DS . 'kiteconnect.php');
$kite = new KiteConnect("myzabdtfai7t2ore");
try {
echo 'aaa';
$user = $kite->generateSession("w5757f2eD2ykLX8UaW7YQkHN2Vrc7sgF", "3qa8stx9s3mkpzqtrtzru1kirr4lpa77");
echo "Authentication successful. \n";
print_r($user,1);
$kite->setAccessToken($user->access_token);
} catch (Exception $e) {
echo "Authentication failed: " . $e->getMessage();
throw $e;
}
exit;
I am getting below error
Error :- Authentication failed: Token is invalid or has expired.
Note :- I am using this access token generated from
https://kite.zerodha.com/connect/login?api_key=myzabdtfai7t2ore&v=3
(Once time in a day)
Tagged:
WebSocket
kiteapi
php client
rakeshr
January 2021
@akashchopda555
Our official PHP client doesn't support WebSocket streaming. You can go through
this thread
to know more.
Sign In
or
Register
to comment.
Our official PHP client doesn't support WebSocket streaming. You can go through this thread to know more.