Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / doc / sdk / python / example.html.textile.liquid
index 504d0784f0ca003610e3b72b630e75e2e4f4a141..edcdba549622d99d19605f4145d7f2b1626442ed 100644 (file)
@@ -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 %}