Set API base URL and optionally load stored credentials.
The URL can also be set via the
METASURVEY_API_URL environment variable, and
the token via METASURVEY_TOKEN.
See also
Other api-auth:
api_login(),
api_logout(),
api_me(),
api_refresh_token(),
api_register()