Skip to content

Commit 5734284

Browse files
committed
Added changes
1 parent b76393e commit 5734284

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed
Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
import pprint, requests
22

33
headers = {'Authorization': 'token <API KEY>'}
4-
5-
# Get all appointments
64
r = requests.get('https://secure.tutorcruncher.com/api/appointments/', headers=headers)
75
pprint.pprint(r.json())
8-
9-
# Filter by client ID
10-
r = requests.get('https://secure.tutorcruncher.com/api/appointments/?client=123', headers=headers)
11-
pprint.pprint(r.json())
12-
13-
# Filter by status
14-
r = requests.get('https://secure.tutorcruncher.com/api/appointments/?status=planned', headers=headers)
15-
pprint.pprint(r.json())
16-
17-
# Filter by both client and status
18-
r = requests.get('https://secure.tutorcruncher.com/api/appointments/?client=123&status=complete', headers=headers)
19-
pprint.pprint(r.json())

0 commit comments

Comments
 (0)