☰
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
12.1K
All Categories
91
Node JS client
32
Go client
706
.Net API client
338
Kite Publisher
526
.Net / VBA / Excel (3rd party)
402
Algorithms and Strategies
901
Java client
918
API clients
386
PHP client
3.4K
Python client
314
Mobile and Desktop apps
1.2K
Market data (WebSockets)
2.9K
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.