Client settings
Configuration
Timeouts, proxies, regions and per-request configuration.
Everything on this page is set on the client and applies to every call made through it.
Timeouts#
Defaults are generous enough for interactive calls but not for large imports or exports. Raise the read timeout before moving large files.
$ac->setConnectionTimeout(10); // seconds
$ac->setReadTimeout(60);
$connect = $ac->getConnectionTimeout();
$read = $ac->getReadTimeout();Proxy#
// proxy_type is one of "HTTP", "HTTPS" or "BOTH".
$ac->setProxy("proxy.example.com", 8443, "BOTH", "proxyUser", "proxyPassword");Region#
$ac->setAnalyticsServerURL("https://analyticsapi.zoho.eu");
$ac->setAccountsServerURL("https://accounts.zoho.eu");See Authentication for the full host table.
Request configuration#
Most methods take a final config value carrying optional parameters for that endpoint — filter criteria, output format, pagination and so on.
$config = array(
"viewTypes" => array("0", "1")
);
$views = $workspace->getViews($config);Supplying an access token directly#
$ac->setAccessToken("1000.xxxxxxx.xxxxxxx");PHP notes#
configdefaults toarray(); omit it when you have nothing to add.- Responses are associative arrays, already JSON-decoded.
Related#
- Authentication — credentials and the token throttle.
- Errors — what a failure looks like.