Error INVALID_OAUTHSCOPE in request to url https://accounts.zoho.com/oauth/user/info
I m trying configure the API ZOHO in my PHP application.
* 1 step:
2* step:
Install and configure API ZOHO
composer require zohocrm/php-sdk
*3 step
Obtain code grant with request GET
* 4 step:
you should obtain the code in the response of 3 step by JSON and then you will try the authentication
$codigo=$_GET['code'];
//echo("Codigo: ".$codigo);
ZCRMRestClient::initialize();
$oAuthClient = ZohoOAuth::getClientInstance();
$grantToken = $codigo;
$oAuthTokens = $oAuthClient->generateAccessToken($grantToken);
in function "getUserEmailIdFromIAM($accessToken)" return this error in JSON { ["response"]=> string(5) "error" ["cause"]=> string(18) "INVALID_OAUTHSCOPE" } when try make request with access_token.
line 180 of ZohoOAuthClient.php