twinlab.set_api_key#
- twinlab.set_api_key(api_key, verbose=False)[source]#
Set the user API key for their twinLab cloud account.
Setting this will override the API key set in the environment variable
TWINLAB_API_KEYin the .env file for the current session. This can be used instead of setting the API key in the.envfile and negates the need for a.envfile.- Parameters:
- Return type:
Example
tl.set_api_key("12345")