We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9240ae1 commit bf9549eCopy full SHA for bf9549e
app/admin/examples/eg007_get_user_profile_by_user_id.py
@@ -28,20 +28,20 @@ def worker(args):
28
user_id = args["user_id"]
29
30
# Create an API client with headers
31
- # Step 2 start
+ #ds-snippet-start:Admin7Step2
32
api_client = ApiClient(host=DS_CONFIG["admin_api_client_host"])
33
api_client.set_default_header(
34
header_name="Authorization",
35
header_value=f"Bearer {access_token}"
36
)
37
- # Step 2 end
+ #ds-snippet-end:Admin7Step2
38
39
- # Step 3 start
+ #ds-snippet-start:Admin7Step3
40
users_api = UsersApi(api_client=api_client)
41
42
results = users_api.get_user_ds_profile(
43
organization_id=org_id,
44
user_id=user_id)
45
- # Step 3 end
+ #ds-snippet-end:Admin7Step3
46
47
return results
0 commit comments