Expand description
Shared building blocks used across resource clients: the response envelope,
query-parameter helpers, pagination types and the User-Agent builder.
Structs§
- List
Options - Standard offset/limit pagination options shared by most list endpoints.
- Pagination
List - A single page of an offset/limit-paginated list.
- Query
Params - A mutable collection of query parameters that serializes booleans as
0/1and omitsNonevalues, matching the Apify API conventions. - Storage
List Options - Options shared by the storage collection list endpoints (
GET /v2/datasets,/v2/key-value-stores,/v2/request-queues), which addunnamedandownershipfilters on top of the standard offset/limit pagination.
Functions§
- build_
user_ agent - Builds the
User-Agentheader value mandated by the client requirements:ApifyClient/{version} ({os}; {language version}); isAtHome/{isAtHome}. - create_
hmac_ signature - Computes an Apify URL-signing signature, byte-for-byte compatible with the platform’s
@apify/utilitiescreateHmacSignature. - encode_
path_ segment - Percent-encodes a single URL path segment, so that values interpolated into the path (such as key-value-store record keys or request IDs) cannot break out of the segment or inject a query string.
- sign_
storage_ content - Builds a storage-content signature for a resource’s public URL, byte-for-byte compatible
with the platform’s
@apify/utilitiescreateStorageContentSignature. - to_
safe_ id - Encodes a resource id so it is safe to embed in a URL path. Apify uses the
username~resourcenameform, so the first/of an id is replaced with~.