spockbot.mcp.yggdrasil module

class spockbot.mcp.yggdrasil.YggdrasilCore(username='', password='', client_token='', access_token='')

Bases: object

authenticate()

Generate an access token using an username and password. Any existing client token is invalidated if not provided.

Returns:Response or error dict
Return type:dict
invalidate()

Invalidate access tokens with a client/access token pair

Returns:Empty or error dict
Return type:dict
login()
logout()
refresh()

Generate an access token with a client/access token pair. Used access token is invalidated.

Returns:Response or error dict
Return type:dict
signout()

Invalidate access tokens with a username and password.

Returns:Empty or error dict
Return type:dict
validate()

Check if an access token is valid

Returns:Empty or error dict
Return type:dict
ygg_url = 'https://authserver.mojang.com'
ygg_version = 1