Developer Interface

Token

class koordinates.tokens.TokenManager(client)

Bases: koordinates.base.Manager

Accessor for querying Tokens.

Access via the tokens property of a koordinates.client.Client instance.

create(token, email, password)

Create a new token

Parameters:
  • token (Token) – Token instance to create.
  • email (str) – Email address of the Koordinates user account.
  • password (str) – Koordinates user account password.
delete(id)

Delete a token

get(id, expand=[])

Fetches a Token determined by the value of id.

Parameters:id – ID for the new Token object.
list()

Fetches a set of Tokens

model

alias of Token

class koordinates.tokens.Token(**kwargs)

Bases: koordinates.base.Model

Represents an API Token.

save()

Saves changes to a token

scopes

Read/Write accessor for the scope property as a list of scope strings.