☰
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
14.1K
All Categories
0
Incidents
157
Node JS client
41
Go client
797
.Net API client
385
Kite Publisher
537
.Net / VBA / Excel (3rd party)
463
Algorithms and Strategies
1K
Java client
1.1K
API clients
407
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
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.