☰
Login
Signup
Home
›
PHP client
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
14K
All Categories
0
Incidents
156
Node JS client
40
Go client
794
.Net API client
383
Kite Publisher
537
.Net / VBA / Excel (3rd party)
462
Algorithms and Strategies
1K
Java client
1.1K
API clients
405
PHP client
4K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
May 2019
sujith
Error while accessing API
Pranay456
May 2019
edited May 2019
in
PHP client
While accessing the API, I am getting Error : invalid api_key or access token(PFA-Snapshot). The api_key is correct and access_token too. I have used api_key to generate request_token.
This is the PHP code I am using -
$url = "
https://api.kite.trade/quote?i=41729&i=NSE:INFY
";
// &X-Kite-Version=3&Authorization=token api_key:access_key
$header = array(
'X-Kite-Version' => '3',
'Authorization' => 'token api_key:access_key'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
$head = curl_exec($ch);
curl_close($ch);
echo ($head);
help me solve the issue.
Tagged:
php
sujith
May 2019
Can you check if this is the
reason
?
Sign In
or
Register
to comment.