talkomatic.py 0.1.2
An easy-to-use Python versatile wrapper for the Talkomatic Bot interface ensuring best practices for making bots, and handling the REST API.
 
Loading...
Searching...
No Matches
talkomatic.api.v1.auth Namespace Reference

Functions

str get_auth_bot_token ()
 

Variables

dict API_AUTH_HEADERS = {"x-api-key": "tK_public_key_4f8a9b2c7d6e3f1a5g8h9i0j4k5l6m7n8o9p"}
 
str BOT_TOKEN_PATH = "BOT_TOKEN_DO_NOT_SHARE_OR_DELETE_OR_MODIFY"
 

Function Documentation

◆ get_auth_bot_token()

str talkomatic.api.v1.auth.get_auth_bot_token ( )
Fetches the bot token and returns it, by requesting it from the server if expired
or doesn't exist, but loads from a local file if it exists and isn't expired.

Definition at line 10 of file auth.py.

Variable Documentation

◆ API_AUTH_HEADERS

dict talkomatic.api.v1.auth.API_AUTH_HEADERS = {"x-api-key": "tK_public_key_4f8a9b2c7d6e3f1a5g8h9i0j4k5l6m7n8o9p"}

Definition at line 7 of file auth.py.

◆ BOT_TOKEN_PATH

str talkomatic.api.v1.auth.BOT_TOKEN_PATH = "BOT_TOKEN_DO_NOT_SHARE_OR_DELETE_OR_MODIFY"

Definition at line 8 of file auth.py.