X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/16f704326f44fd1e5e5e60b936c9b5895d6a6ff8..7499f61a2912cfdb1a316808fafa6e6ee77ee2e0:/doc/sdk/python/example.html.textile.liquid diff --git a/doc/sdk/python/example.html.textile.liquid b/doc/sdk/python/example.html.textile.liquid index 504d0784f0..edcdba5496 100644 --- a/doc/sdk/python/example.html.textile.liquid +++ b/doc/sdk/python/example.html.textile.liquid @@ -12,6 +12,8 @@ SPDX-License-Identifier: CC-BY-SA-3.0 In these examples, the site prefix is @aaaaa@. +See also the "cookbook":cookbook.html for more complex examples. + h2. Initialize SDK {% codeblock as python %} @@ -54,3 +56,15 @@ h2. Get current user {% codeblock as python %} result = api.users().current().execute() {% endcodeblock %} + +h2. Get the User object for the current user + +{% codeblock as python %} +current_user = arvados.api('v1').users().current().execute() +{% endcodeblock %} + +h2. Get the UUID of an object that was retrieved using the SDK + +{% codeblock as python %} +my_uuid = current_user['uuid'] +{% endcodeblock %}