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.
# The Python client exposes timeouts through the underlying requests session.
ac.request_timeout = (10, 60) # (connect, read) in secondsProxy#
ac.set_proxy("proxy.example.com", "8443", "proxyUser", "proxyPassword")Region#
ac.analytics_server_url = "https://analyticsapi.zoho.eu"
ac.accounts_server_url = "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.
# Any extra headers are merged into every request.
ac.default_headers = {"X-Custom-Source": "nightly-sync"}Supplying an access token directly#
# Supply a token you already hold instead of letting the SDK mint one.
ac.access_token = "1000.xxxxxxx.xxxxxxx"Python notes#
configdefaults to{}; omit it when you have nothing to add.- Streaming variants
export_data_stream()andexport_bulk_data_stream()return aurllib3response so large exports never have to be buffered in memory.
Related#
- Authentication — credentials and the token throttle.
- Errors — what a failure looks like.