DocsReferenceAnalyticsClient

Reference

AnalyticsClient

The entry point. 12 methods.

csharp
using ZohoAnalytics;
using System.Collections.Generic;
using System.Text.Json;

string clientId     = "1000.xxxxxxx";
string clientSecret = "xxxxxxx";
string refreshToken = "1000.xxxxxxx.xxxxxxx";

IAnalyticsClient ac = new AnalyticsClient(clientId, clientSecret, refreshToken);

AnalyticsClient exposes 12 methods. Method names are PascalCase and identifiers are long.

Methods#

GetBulkInstance, GetConnectionTimeout, GetOrgInstance, GetReadTimeout, GetViewInstance, GetWorkspaceInstance, SetAccountsServerURL, SetAnalyticsServerURL, SetConnectionTimeout, SetDebugLogPath, SetProxy, SetReadTimeout

GetBulkInstance#

csharp
IBulkAPI GetBulkInstance(long orgId, long workspaceId)

Creates a new BulkAPI instance.

ParameterDescription
orgIdThe ID of the organization.
workspaceIdThe ID of the workspace.

Returns (IBulkAPI) — BulkAPI instance.

GetConnectionTimeout#

csharp
int GetConnectionTimeout()

Returns the timeout until a connection is established.

Returns (int) — The timeout value.

GetOrgInstance#

csharp
IOrgAPI GetOrgInstance(long orgId)

Creates a new OrgAPI instance.

ParameterDescription
orgIdThe ID of the organization.

Returns (IOrgAPI) — OrgAPI instance.

GetReadTimeout#

csharp
int GetReadTimeout()

Returns the read timeout value which will wait for the packet to receive from the server end.

Returns (int) — The timeout value.

GetViewInstance#

csharp
IViewAPI GetViewInstance(long orgId, long workspaceId, long viewId)

Creates a new ViewAPI instance.

ParameterDescription
orgIdThe ID of the organization.
workspaceIdThe ID of the workspace.
viewIdThe ID of the view.

Returns (IViewAPI) — ViewAPI instance.

GetWorkspaceInstance#

csharp
IWorkspaceAPI GetWorkspaceInstance(long orgId, long workspaceId)

Creates a new WorkspaceAPI instance.

ParameterDescription
orgIdThe ID of the organization.
workspaceIdThe ID of the workspace.

Returns (IWorkspaceAPI) — WorkspaceAPI instance.

SetAccountsServerURL#

csharp
void SetAccountsServerURL(string serverUrl)

Sets the accounts server URL.

ParameterDescription
serverUrlZohoAccounts server URL

SetAnalyticsServerURL#

csharp
void SetAnalyticsServerURL(string serverUrl)

Sets the analytics server URL.

ParameterDescription
serverUrlZohoAnalytics server URL

SetConnectionTimeout#

csharp
void SetConnectionTimeout(int timeout)

Sets the timeout until a connection is established.

ParameterDescription
timeoutThe timeout value.

SetDebugLogPath#

csharp
void SetDebugLogPath(string logFilePath)

Sets the file path for the debug log. Call this before making any API calls.

ParameterDescription
logFilePathFull path to the log file. E.g. "C:\Logs\ZohoAnalytics.log"

SetProxy#

csharp
void SetProxy(string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)

To specify the proxy server details.

ParameterDescription
proxyHostThe hostname/IP address of the proxy server.
proxyPortThe proxy server port.
proxyUsernameThe user name for proxy-server authentication.
proxyPasswordThe password for proxy server authentication.

SetReadTimeout#

csharp
void SetReadTimeout(int timeout)

Sets the read timeout which will wait for data response from the server end.

ParameterDescription
timeoutThe timeout value.
  • Errors — the failure envelope and codes worth branching on.
  • Limits — throttles and quotas that apply to these calls.
Zoho Analytics C# SDK · REST API v2 Generated 2026-10-27