Invalid `api_key` or `access_token`.

renishkhunt
Hello there,

Can you please help me? I am getting an error message ( Invalid `api_key` or `access_token`. ) When I am going to fetch the user profile.

I am following the example here on the Github repository.
https://github.com/zerodha/phpkiteconnect

$user = $kite->generateSession("request_token_obtained", "your_api_secret");
$kite->setAccessToken($user->access_token);

When I call getProfile() method like
$userProfile = $kite->getProfile();

I am getting this error and I used the recently generated request_token and access_token. but still, I am getting this error message.

Can you please check where I did a mistake and help me?
Sign In or Register to comment.