Skip to content

Commit 37ce5d3

Browse files
committed
DEVDOCS-10374 - adding codeDepot markers
1 parent 04e82c4 commit 37ce5d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/click/examples/eg001_create_clickwrap.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)