Revision b4b82ec4 astakosclient/docs/index.rst

b/astakosclient/docs/index.rst
40 40

  
41 41
    client = AstakosClient("UQpYas7ElzWGD5yCcEXtjw",
42 42
                           "https://accounts.example.com")
43
    user_info = client.get_user_info()
44
    print user_info['username']
43
    user_info = client.authenticate()
44
    print user_info['access']['user']['id']
45 45

  
46 46
Another example where we ask for the username of a user with UUID:
47 47
``b3de8eb0-3958-477e-als9-789af8dd352c``
......
79 79
        their token as well as the service endpoints one can access. In
80 80
        case of error, it raises an AstakosClientException exception.
81 81

  
82
    **get_user_info()**
83
        It returns a dict with the corresponding user's info. In case of
84
        error, it raises an AstakosClientException exception.
85

  
86 82
    **get_usernames(**\ uuids\ **)**
87 83
        Given a list of UUIDs it returns a uuid_catalog, that is a dictionary
88 84
        with the given UUIDs as keys and the corresponding user names as

Also available in: Unified diff