Skip to content

Commit ce21854

Browse files
committed
DEVDOCS-10500 - adding codeDepot markers
1 parent d10d8e4 commit ce21854

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/rooms/examples/eg005_get_rooms_with_filters.py

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

0 commit comments

Comments
 (0)