File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,13 @@ def worker(args):
3030 5. Create a clickwrap using SDK
3131 """
3232 # Step 1. Create an API client with headers
33+ #ds-snippet-start:Click1Step2
3334 api_client = create_click_api_client (
3435 access_token = args ["access_token" ]
3536 )
37+ #ds-snippet-end:Click1Step2
3638
39+ #ds-snippet-start:Click1Step3
3740 # Step 2. Create a display settings model
3841 display_settings = DisplaySettings (
3942 consent_button_text = "I Agree" ,
@@ -67,12 +70,15 @@ def worker(args):
6770 name = args .get ("clickwrap_name" ),
6871 require_reacceptance = True
6972 )
73+ #ds-snippet-end:Click1Step3
7074
7175 # Step 5. Create a clickwrap using SDK
76+ #ds-snippet-start:Click1Step4
7277 accounts_api = AccountsApi (api_client )
7378 response = accounts_api .create_clickwrap (
7479 clickwrap_request = clickwrap_request ,
7580 account_id = args ["account_id" ]
7681 )
82+ #ds-snippet-end:Click1Step4
7783
7884 return response
You can’t perform that action at this time.
0 commit comments