Skip to content

v0.0.5

Choose a tag to compare

@benr-calam benr-calam released this 18 Aug 22:30

Features

Client.DEFAULT_PROFILE

Added feature for quickly getting the user's default profile id. This is done by:

client = Client('access-token')
client.DEFAULT_PROFILE

This is useful in code such as this:

client.profile(client.DEFAULT_PROFILE).loop.get()

Note: Client.DEFAULT_PROFILE is a cached property. So, if the user's default profile changes after Client.DEFAULT_PROPERTY has already been fetched then this will not be reflected immediately. To reset Client.DEFAULT_PROFILE do:

del client.DEFAULT_PROFILE

and then fetch it again.