예제 #1
0
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])
예제 #2
0
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])
예제 #3
0
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])