Skip to content

Authorization Methods

auth.init

as_api().auth.init(webserver=True)

Authenticate the CLI.

Parameters

  • webserver: Boolean. Enable a Web server? Default is True.

auth.whoami

as_api().auth.whoami()

Display the Id, email address, and user name of the current user.

auth.resource

as_api().auth.resource(org) 

Create a service token for a specific resource.

Parameters

  • org: String. Organization to use.