Authorization

To access the Spaya API, you need to generate a token from the Spaya API page in your Spaya account

Unless specified, use the BearerToken class

class Authorization

Abstract class for login

abstract headers()
Returns

Request header with authorization information

Return type

Dict

class BearerToken(token)

Simple Bearer Token Authorization

Parameters

token (str) –

headers()

Returns: Request header with authorization information

Return type

Dict

class CustomBearerToken(token, header_key='X-Iktos-Authorization')

Custom Bearer Token Authorization

Parameters
  • token (str) –

  • header_key (str) –

headers()

Returns: Request header with authorization information

Return type

Dict