Authentication API
The auth module provides authentication mechanisms for the 1WorldSync API.
HMACAuth
- class oneworldsync.auth.HMACAuth(app_id, secret_key)[source]
Bases:
objectHMAC Authentication for 1WorldSync API
This class handles the HMAC authentication process required by the 1WorldSync API. It generates the necessary hash code based on the request parameters and secret key.
- generate_timestamp()[source]
Generate a timestamp in the format required by the 1WorldSync API
- Returns:
Timestamp in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)
- Return type: