session#

The following methods allow for interaction with the ZCC Session API endpoints.

Methods are accessible via zcc.session

class AuthenticatedSessionAPI#
create_token(client_id, client_secret)#

Creates a ZCC authentication token.

Parameters:
  • client_id (str) – The ZCC Portal Client ID.

  • client_secret (str) – The ZCC Portal Client Secret.

Returns:

The authenticated session information.

Return type:

Box

Examples

>>> zia.session.create(api_key='999999999',
...    username='admin@example.com',
...    password='MyInsecurePassword')