Account tokens handler

class luna_backport3.app.handlers.account_tokens_handler.AccountTokensHandler(request)[source]

Handler for work with sets of account tokens, only basic authorization is available.

async delete()[source]

Account tokens delete handler. See spec delete account tokens.

Returns:

empty 204 response

Return type:

HTTPResponse

async get()[source]

Account tokens get handler. See spec get account tokens.

Returns:

json with tokens count and tokens from the current page

Return type:

HTTPResponse

async post()[source]

Account tokens post handler. See spec post account tokens.

Returns:

json with created token id

Return type:

HTTPResponse

Account token handler

class luna_backport3.app.handlers.account_token_handler.AccountTokenHandler(request)[source]

Handler for work with account token information, only basic authorization is available.

async delete(tokenId)[source]

Account token handler. See spec delete token.

Returns:

empty 204 response

Raises:

VLException(Error.ObjectNotFound, 404, isCriticalError=False) if token not found

Return type:

HTTPResponse

async get(tokenId)[source]

Account token handler. See spec get token.

Returns:

json with token data

Return type:

HTTPResponse

async patch(tokenId)[source]

Account token handler. See spec patch token.

Returns:

empty 204 response

Return type:

HTTPResponse