Revision 26498848 astakosclient/docs/index.rst
b/astakosclient/docs/index.rst | ||
---|---|---|
39 | 39 |
from astakosclient import AstakosClient |
40 | 40 |
|
41 | 41 |
client = AstakosClient("https://accounts.example.com") |
42 |
user_info = client.get_user_info("UQpYas7ElzWGD5yCcEXtjw==")
|
|
42 |
user_info = client.get_user_info("UQpYas7ElzWGD5yCcEXtjw") |
|
43 | 43 |
print user_info['username'] |
44 | 44 |
|
45 | 45 |
Another example where we ask for the username of a user with UUID: |
... | ... | |
50 | 50 |
from astakosclient import AstakosClient |
51 | 51 |
|
52 | 52 |
client = AstakosClient("https://accounts.example.com") |
53 |
username = client.get_username("UQpYas7ElzWGD5yCcEXtjw==",
|
|
53 |
username = client.get_username("UQpYas7ElzWGD5yCcEXtjw", |
|
54 | 54 |
"b3de8eb0-3958-477e-als9-789af8dd352c") |
55 | 55 |
print username |
56 | 56 |
|
Also available in: Unified diff