Getting Started
API Reference
BaseSchema
BaseSchema.add_auth_secret()
BaseSchema.add_headers()
Base class for all schemas.
Adds the authentication secret for POST requests to the BaseSchema for all subclasses to access.
auth_secret (str) – Authentication secret given by TBA for POST requests.
Adds headers for subclasses’ uses when sending requests (GET/POST).
headers (dict) – A dictionary that is in the format of {“X-TBA-Auth-Key”: api_key} for TBA be able to authorize sending requests.