We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2af7306 commit d892e4dCopy full SHA for d892e4d
app/admin/examples/eg006_get_user_profile_by_email.py
@@ -28,20 +28,20 @@ def worker(args):
28
email = args["email"]
29
30
# Create an API client with headers
31
- # Step 2 start
+ #ds-snippet-start:Admin6Step2
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:Admin6Step2
38
39
- # Step 3 start
+ #ds-snippet-start:Admin6Step3
40
users_api = UsersApi(api_client=api_client)
41
42
results = users_api.get_user_ds_profiles_by_email(
43
organization_id=org_id,
44
email=email)
45
- # Step 3 end
+ #ds-snippet-end:Admin6Step3
46
47
return results
0 commit comments