Expand description
Docs v1 REST API client.
A typed wrapper around [GoogleApiClient] — the same transport
DriveClient and SheetsClient use — pinned to docs.googleapis.com.
Everything interesting (OAuth session, 401 refresh-and-retry, quota
backoff, request logging, error-envelope parsing) is inherited, so this
module is only a default host, an env override, and a distinct type.
That distinct type is the point, not incidental: FilesApi::new takes a
&DriveClient, so a Docs-hosted client cannot be handed to it and
silently issue /drive/v3/files against the Docs host. A shared
DriveClient re-based onto a third URL would compile.
Structs§
- Docs
Client - HTTP client for the Docs v1 REST API.
Constants§
- DOCS_
API_ URL - Environment variable overriding the Docs API host wholesale.