We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b76393e commit 5734284Copy full SHA for 5734284
pages/appointments/list-all-appointments.py
@@ -1,19 +1,5 @@
1
import pprint, requests
2
3
headers = {'Authorization': 'token <API KEY>'}
4
-
5
-# Get all appointments
6
r = requests.get('https://secure.tutorcruncher.com/api/appointments/', headers=headers)
7
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
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
0 commit comments