Skip to content

Commit

Permalink
adding codeDepot markers
Browse files Browse the repository at this point in the history
  • Loading branch information
paigesrossi committed Mar 13, 2024
1 parent e08cf04 commit bc72803
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/admin/examples/eg011_delete_user_data_from_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ def worker(args):
user_id = args["user_id"]

# Create an API client with headers
# Step 2 start
#ds-snippet-start:Admin11Step2
api_client = ApiClient(host=DS_CONFIG["admin_api_client_host"])
api_client.set_default_header(
header_name="Authorization",
header_value=f"Bearer {access_token}"
)
# Step 2 end
#ds-snippet-end:Admin11Step2

# Step 3 start
#ds-snippet-start:Admin11Step3
accounts_api = AccountsApi(api_client=api_client)
membership_redaction_request = IndividualMembershipDataRedactionRequest(user_id=user_id)
# Step 3 end
#ds-snippet-end:Admin11Step3

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

return results

0 comments on commit bc72803

Please sign in to comment.