Skip to content

Commit bc72803

Browse files
committed
adding codeDepot markers
1 parent e08cf04 commit bc72803

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/admin/examples/eg011_delete_user_data_from_account.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ def worker(args):
2626
user_id = args["user_id"]
2727

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

37-
# Step 3 start
37+
#ds-snippet-start:Admin11Step3
3838
accounts_api = AccountsApi(api_client=api_client)
3939
membership_redaction_request = IndividualMembershipDataRedactionRequest(user_id=user_id)
40-
# Step 3 end
40+
#ds-snippet-end:Admin11Step3
4141

42-
# Step 4 start
42+
#ds-snippet-start:Admin11Step4
4343
results = accounts_api.redact_individual_membership_data(account_id, membership_redaction_request)
44-
# Step 4 end
44+
#ds-snippet-end:Admin11Step4
4545

4646
return results

0 commit comments

Comments
 (0)