Skip to content

Commit d4d4fd4

Browse files
committed
DEVDOCS-10601 - adding codeDepot markers
1 parent 72ad709 commit d4d4fd4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/click/examples/eg006_embed_clickwrap.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ def get_active_clickwraps(args):
2727
2. Get a list of active clickwraps
2828
"""
2929
# Step 1. Create an API client with headers
30+
#ds-snippet-start:Click6Step2
3031
api_client = create_click_api_client(
3132
access_token=args["access_token"]
3233
)
34+
#ds-snippet-end:Click6Step2
3335

3436
# Step 2. Get a list of active clickwraps
3537
accounts_api = AccountsApi(api_client)
@@ -53,6 +55,7 @@ def worker(args):
5355
)
5456

5557
# Create a user agreement request model
58+
#ds-snippet-start:Click6Step3
5659
user_agreement_request = UserAgreementRequest(
5760
client_user_id=args["email"],
5861
document_data={
@@ -63,8 +66,10 @@ def worker(args):
6366
"date": args["date"]
6467
},
6568
)
69+
#ds-snippet-end:Click6Step3
6670

67-
# Retrieve Agreement Url using SDK
71+
# Retrieve Agreement URL using SDK
72+
#ds-snippet-start:Click6Step4
6873
accounts_api = AccountsApi(api_client)
6974
clickwrap = ast.literal_eval(args["clickwrap"])
7075
print(type(clickwrap))
@@ -73,5 +78,6 @@ def worker(args):
7378
clickwrap_id=clickwrap["clickwrap_id"],
7479
user_agreement_request=user_agreement_request,
7580
)
81+
#ds-snippet-end:Click6Step4
7682

7783
return response

0 commit comments

Comments
 (0)