def list(client): """Lists user information for the current user. Lists information associated withe the user for the current api key. """ user = User.singleton(client) User.display(client, [user])
def update(client, name): """Update the attributes of the user. Updates the attributes of the currently authorized user. """ user = User.singleton(client) attributes = OrderedDict() if name: attributes['name'] = name user = user.update(attributes=attributes) User.display(client, [user])