I have managed to use postman with all the services rest api of the version 2 with success but when I want to make the communication with the api or with the sdk directly with the zoho packages ZCRMSDK, baseVISION.Tool.Connectors.Zoho or using AJAX does not allow me do the communication. Initially probe modifying in my program in C # the web.config file with the parameters that say:
<configSections> <section name="oauth_configuration" type="ZCRMSDK.CRM.Library.Common.ConfigFileHandler.ConfigFileSection, ZCRMSDK"></section> <section name="zcrm_configuration" type="ZCRMSDK.CRM.Library.Common.ConfigFileHandler.ConfigFileSection, ZCRMSDK"></section> </configSections> <oauth_configuration> <settings> <add key = "client_id" value = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> <add key = "client_secret" value = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> <add key = "redirect_uri" value = "https://www.abc.com" /> <add key = "access_type" value = "offline"/> <add key = "persistence_handler_class" value = "ZCRMSDK.OAuth.ClientApp.ZohoOAuthFilePersistence"/> <add key = "oauth_tokens_file_path" value = ""/> <add key = "mysql_username" value = "root"/> <add key = "mysql_password" value = ""/> <add key = "mysql_database" value = "zohooauth"/> <add key = "mysql_server" value = "localhost"/> <add key = "mysql_port" value = "3306"/> <add key = "iamURL" value = "https://accounts.zoho.com"/> </settings> </oauth_configuration> <zcrm_configuration> <settings> <add key = "apiBaseUrl" value = "https://www.zohoapis.com"/> <add key = "photoUrl" value = "https://profile.zoho.com/api/v1/user/self/photo"/> <add key = "apiVersion" value = "v2"/> <add key = "loginAuthClass" value = "ALL"/> <add key = "logFilePath" value = ""/> <add key = "timeout" value = ""/> <add key = "minLogLevel" value = ""/> <add key = "domainSuffix" value = ""/> <add key = "currentUserEmail" value = "" /> </settings> </zcrm_configuration> and I send them to call in the following way in my code and do nothing. var applicationSettings1 = ConfigurationManager.GetSection("oauth_configuration") as NameValueCollection; var applicationSettings2 = ConfigurationManager.GetSection("zcrm_configuration") as NameValueCollection;
then try using some functions directly from zcrmsdk but when I try to use the following commands:
ZCRMRestClient.Initialize (); ZohoOAuthClient client = ZohoOAuthClient.GetInstance (); string grantToken = <paste_grant_token_here>; ZohoOAuthTokens tokens = client.GenerateAccessToken (grantToken); string accessToken = tokens.AccessToken; string refreshToken = tokens.RefreshToken; from the first the first line gives me a problem that I'm not sending the values initialized as null and sending them values and followed the whole process as this link says
https://www.zoho.com/crm/help/developer/csharp-
sdk / initialize.html and it did not work, and try in other way and not my result of connecting me I do not succeed I ask you please help.