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 @@ -23,11 +23,15 @@ def get_rooms(args):
2323 2. Get rooms with filter
2424 """
2525 # Step 1. Create an API client with headers
26+ #ds-snippet-start:Rooms5Step2
2627 api_client = create_rooms_api_client (access_token = args ["access_token" ])
28+ #ds-snippet-end:Rooms5Step2
2729
2830 # Step 2. Get room templates
31+ #ds-snippet-start:Rooms5Step4
2932 rooms_api = RoomsApi (api_client )
3033 rooms = rooms_api .get_rooms (account_id = args ["account_id" ])
34+ #ds-snippet-end:Rooms5Step4
3135 return rooms .rooms
3236
3337 @staticmethod
@@ -43,7 +47,9 @@ def worker(args):
4347 rooms_api = RoomsApi (api_client )
4448 response = rooms_api .get_rooms (
4549 account_id = args ["account_id" ],
50+ #ds-snippet-start:Rooms5Step3
4651 field_data_changed_start_date = datetime .strptime (args ['start_date' ], "%Y-%m-%d" ),
4752 field_data_changed_end_date = datetime .strptime (args ['end_date' ], "%Y-%m-%d" ),
53+ #ds-snippet-end:Rooms5Step3
4854 )
4955 return response
You can’t perform that action at this time.
0 commit comments