I do the self client setup to get the grant token.
I tried the following scopes but it throws an error:
ZohoCRM.modules.ALL, Aaaserver.profile.READ
from your self client webpage and the ajax call returns an html error page.
Your doc says this scope is required but it does not accept it.
The following DID work:
ZohoCRM.modules.ALL, ZohoCRM.settings.ALL
I got a grant token and made the call to get the access token and this return a successful json block as follows (I am xx-ing out the access and refresh tokens for security):
{
"access_token": "1000.xxxxxx",
"refresh_token": "1000.xxxxxx",
"expires_in_sec": 3600,
"api_domain": "
https://www.zohoapis.com",
"token_type": "Bearer",
"expires_in": 3600000
}
I then use this info in the dictionary in the init:
ZCRMRestClient.Initialize(_config);
and it returns successfully and I am able to successfully generate an instance using:
ZCRMRestClient _zohoClient = ZCRMRestClient.GetInstance();
However, whenever I try to use this client to do anything, for example:
APIResponse response = _zohoClient.GetCurrentUser();
I get an exceptiion:
"Exception of type 'ZCRMSDK.CRM.Library.CRMException.ZCRMException' was thrown."
with an inner exception of:
"Exception of type 'ZCRMSDK.OAuth.Common.ZohoOAuthException' was thrown."
"Given User not found in configuration"
Now, the user that was used to create the self client is my user. And my email is the currentUserEmail in the initialization dictionary. I am setup as an administrator (I checked in the users section of the web page).
I assume I am missing a step or there is some way to use the aaaserver.profile scope successfully but I have spent a lot of time pouring through the documentation and googling the error and cannot find what that might be.
Help...
Thanks,
Larry Axon
CTO
City Communications Integrated