File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,21 +26,21 @@ def worker(args):
26
26
user_id = args ["user_id" ]
27
27
28
28
# Create an API client with headers
29
- # Step 2 start
29
+ #ds-snippet- start:Admin11Step2
30
30
api_client = ApiClient (host = DS_CONFIG ["admin_api_client_host" ])
31
31
api_client .set_default_header (
32
32
header_name = "Authorization" ,
33
33
header_value = f"Bearer { access_token } "
34
34
)
35
- # Step 2 end
35
+ #ds-snippet- end:Admin11Step2
36
36
37
- # Step 3 start
37
+ #ds-snippet- start:Admin11Step3
38
38
accounts_api = AccountsApi (api_client = api_client )
39
39
membership_redaction_request = IndividualMembershipDataRedactionRequest (user_id = user_id )
40
- # Step 3 end
40
+ #ds-snippet- end:Admin11Step3
41
41
42
- # Step 4 start
42
+ #ds-snippet- start:Admin11Step4
43
43
results = accounts_api .redact_individual_membership_data (account_id , membership_redaction_request )
44
- # Step 4 end
44
+ #ds-snippet- end:Admin11Step4
45
45
46
46
return results
You can’t perform that action at this time.
0 commit comments