Skip to content

Commit d892e4d

Browse files
Mei HsiehMei Hsieh
authored andcommitted
DEVDOCS-10490 Py Admin 6 cD mkrs
1 parent 2af7306 commit d892e4d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/admin/examples/eg006_get_user_profile_by_email.py

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

3030
# Create an API client with headers
31-
# Step 2 start
31+
#ds-snippet-start:Admin6Step2
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:Admin6Step2
3838

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

4242
results = users_api.get_user_ds_profiles_by_email(
4343
organization_id=org_id,
4444
email=email)
45-
# Step 3 end
45+
#ds-snippet-end:Admin6Step3
4646

4747
return results

0 commit comments

Comments
 (0)