DocsReferenceAnalyticsClient

Reference

AnalyticsClient

The entry point. 9 methods.

php
<?php
require 'AnalyticsClient.php';

$client_id     = "1000.xxxxxxx";
$client_secret = "xxxxxxx";
$refresh_token = "1000.xxxxxxx.xxxxxxx";

$ac = new AnalyticsClient($client_id, $client_secret, $refresh_token);

AnalyticsClient exposes 9 methods. Method names are camelCase and identifiers are string.

Methods#

getBulkInstance, getConnectionTimeout, getOrgInstance, getReadTimeout, getViewInstance, getWorkspaceInstance, setConnectionTimeout, setProxy, setReadTimeout

getBulkInstance#

php
getBulkInstance($org_id, $workspace_id)

Returns a new BulkAPI instance.

ParameterTypeDescription
org_idstringThe ID of the organization.
workspace_idstringThe ID of the workspace.

Returns — instance.

getConnectionTimeout#

php
getConnectionTimeout()

Returns the timeout until a connection is established.A value of zero means the timeout is not used.

Returns — Connection timeout limit.

getOrgInstance#

php
getOrgInstance($org_id)

Returns a new OrgAPI instance.

ParameterTypeDescription
org_idstringThe ID of the organization.

Returns — instance.

getReadTimeout#

php
getReadTimeout()

Returns the timeout until waiting to read data. A value of zero means the timeout is not used. The default value is 15000.

Returns — Read timeout limit.

getViewInstance#

php
getViewInstance($org_id, $workspace_id, $view_id)

Returns a new ViewAPI instance.

ParameterTypeDescription
org_idstringThe ID of the organization.
workspace_idstringThe ID of the workspace.
view_idstringThe ID of the view.

Returns — instance.

getWorkspaceInstance#

php
getWorkspaceInstance($org_id, $workspace_id)

Returns a new WorkspaceAPI instance.

ParameterTypeDescription
org_idstringThe ID of the organization.
workspace_idstringThe ID of the workspace.

Returns — instance.

setConnectionTimeout#

php
setConnectionTimeout($time_limit)

Sets the timeout until a connection is established. A value of zero means the timeout is not used. The default value is 15000.

ParameterTypeDescription
time_limitintAn integer value.

setProxy#

php
setProxy($proxy_host, $proxy_port, $proxy_type, $proxy_user_name, $proxy_password)

Used to specify the proxy server details.

ParameterTypeDescription
proxy_hoststringThe hostname/ip address of the proxy-server.
proxy_portintThe proxy server port.
proxy_typestringCan be any one ( HTTP , HTTPS , BOTH ).Specify "BOTH" if same configuration can be used for both HTTP and HTTPS.
proxy_user_namestringThe user name for proxy-server authentication.
proxy_passwordstringThe password for proxy-server authentication.

setReadTimeout#

php
setReadTimeout($time_limit)

Sets the timeout until waiting to read data. A value of zero means the timeout is not used. The default value is 15000.

ParameterTypeDescription
time_limitintAn integer value.
  • Errors — the failure envelope and codes worth branching on.
  • Limits — throttles and quotas that apply to these calls.
Zoho Analytics PHP SDK · REST API v2 Generated 2026-10-27