☰
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.2K
All Categories
0
Incidents
126
Node JS client
36
Go client
765
.Net API client
360
Kite Publisher
532
.Net / VBA / Excel (3rd party)
433
Algorithms and Strategies
964
Java client
1K
API clients
400
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.1K
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.