C# SDK CRM API - 401 - Empty Response
Hi,
Just exploring the Zoho CRM API possibilities using the C# SDK and running into an issue that I could do with some help on.
I can successfully authenticate and generate an access token and the authorization header is added to the request correctly, I am currently using the scope below for my grant token:
aaaserver.profile.READ,ZohoCRM.modules.ALL,ZohoCRM.users.ALL,ZohoCRM.settings.ALL,ZohoCRM.org.ALL,ZohoCRM.bulk.ALL
- public void GetOrganizationDetails()
- {
- try
- {
- ZCRMRestClient restClient = ZCRMRestClient.GetInstance();
- APIResponse response = restClient.GetOrganizationDetails(); //Exception thrown here
- ZCRMOrganization organization = (ZCRMOrganization)response.Data;
- }
- catch (Exception ex)
- {
- Debug.Print(ex.Message);
- }
- }