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_KEY
in the.env
file for the current session. This function can also be used instead of setting aTWINLAB_API_KEY
in a.env
file.- Parameters:
- Return type:
Example
tl.set_api_key("12345")