Expand description
API response parsing, URL-encoded body truncation, and timestamp generation.
Functionsยง
- deserialize_
flexible_ name - Deserializes fields that the API returns as either a plain string or
{"display":"Name"}. - deserialize_
flexible_ string_ id - Deserializes fields that the API returns as either a string, number, or other value.
- deserialize_
picture - Deserializes picture/image fields the API returns as either a string URL, null, or an Image object.
- parse_
response - Parses an API response, handling error status codes and JSON deserialization.
- timestamp
- Generates a Unix timestamp string for request signing.
- truncate
- Truncates a string to
max_lencharacters with ellipsis.