gamebench_api_client.models.authentication package

Submodules

gamebench_api_client.models.authentication.authentication module

This module is responsible for getting the Authentication token for the client.

The Authenticator is an interface to the Mediator which contacts the lower- level logic to actually build and send requests.

class gamebench_api_client.models.authentication.authentication.Authenticator[source]

Bases: gamebench_api_client.models.abstract_model.AbstractModel, gamebench_api_client.singleton.Singleton

Class responsible for obtaining an authentication token.

__init__()[source]

Sets up the mediator and data attributes.

The mediator is set to the mediator that it will be contacting. The data is the return from the get_token method.

get_data()[source]

Calls the get_results method from the Mediator object.

Returns:The authentication token as a JSON.

Module contents