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