@@ -29,15 +29,13 @@ def get_form_groups(args):
2929
3030 api_client = create_rooms_api_client (access_token = args ["access_token" ])
3131
32- # Step 4 start
33-
3432 # GET Form Groups via FormGroupsAPI
33+ #ds-snippet-start:Rooms8Step4
3534 form_groups_api = FormGroupsApi (api_client )
3635 response = form_groups_api .get_form_groups (account_id = args ["account_id" ]) # type: FormGroupSummaryList
3736
38- # Step 4 end
39-
4037 return response .form_groups
38+ #ds-snippet-end:Rooms8Step4
4139
4240 @staticmethod
4341 def get_offices (args ):
@@ -47,40 +45,33 @@ def get_offices(args):
4745 """
4846
4947 # Create an API with headers with headers
48+ #ds-snippet-start:Rooms8Step2
5049 api_client = create_rooms_api_client (args ["access_token" ])
51-
52- # Step 3 start
50+ #ds-snippet-end:Rooms8Step2
5351
5452 # GET offices via OfficesAPI
53+ #ds-snippet-start:Rooms8Step3
5554 offices_api = OfficesApi (api_client = api_client )
5655 response = offices_api .get_offices (account_id = args ["account_id" ]) # type: OfficeSummaryList
5756
58- # Step 3 end
59-
6057 return response .office_summaries
58+ #ds-snippet-end:Rooms8Step3
6159
6260 @staticmethod
6361 def worker (args ):
6462 """
6563 1. Create an API client with headers
6664 2. Grant office access to a form group via FormGroups API
6765 """
68-
69- # Step 2 start
70-
7166 # Create an API client with headers
7267 api_client = create_rooms_api_client (access_token = args ["access_token" ])
7368
74- # Step 2 end
75-
76- # Step 5 start
77-
7869 # Grant office access to a form group via FormGroups API
70+ #ds-snippet-start:Rooms8Step5
7971 form_groups_api = FormGroupsApi (api_client )
8072
8173 form_groups_api .grant_office_access_to_form_group (
8274 form_group_id = args ["form_group_id" ], office_id = args ["office_id" ],
8375 account_id = args ["account_id" ]
8476 )
85-
86- # Step 5 end
77+ #ds-snippet-end:Rooms8Step5
0 commit comments