Skip to content

Commit bf9549e

Browse files
Mei HsiehMei Hsieh
authored andcommitted
DEVDOCS-10564 Py Admin 7 cD mkrs
1 parent 9240ae1 commit bf9549e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/admin/examples/eg007_get_user_profile_by_user_id.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ def worker(args):
2828
user_id = args["user_id"]
2929

3030
# Create an API client with headers
31-
# Step 2 start
31+
#ds-snippet-start:Admin7Step2
3232
api_client = ApiClient(host=DS_CONFIG["admin_api_client_host"])
3333
api_client.set_default_header(
3434
header_name="Authorization",
3535
header_value=f"Bearer {access_token}"
3636
)
37-
# Step 2 end
37+
#ds-snippet-end:Admin7Step2
3838

39-
# Step 3 start
39+
#ds-snippet-start:Admin7Step3
4040
users_api = UsersApi(api_client=api_client)
4141

4242
results = users_api.get_user_ds_profile(
4343
organization_id=org_id,
4444
user_id=user_id)
45-
# Step 3 end
45+
#ds-snippet-end:Admin7Step3
4646

4747
return results

0 commit comments

Comments
 (0)