You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/authentication.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ You'll need to login first, you can do this through the `/login` endpoint for yo
27
27
28
28
With each request you must specify your authentication token in the `authorization` header, and optionally your student ID in the URL. However, it is **required** to specify student ID when using the parent API, as ClassCharts needs to know which student you would like to get data for.
29
29
30
-
E.g. `/apiv2student/activity/2339528` with the header: `Authorization: Basic 5vf2v7n5uk9jftrxaarrik39vk6yjm48`.
30
+
E.g. `/apiv2student/activity/2339528` with the header: `Authorization: Basic eW91IHNob3VsZCBzdGFyIHRoaXMgcmVwbyE`.
The `from` field does not work as you would expect, since this endpoint is meant for pagination on the home page, Classcharts only returns a 50 points from the `to` field.
67
76
@@ -120,6 +129,8 @@ paths:
120
129
operationId: list-homeworks
121
130
summary: List Homeworks
122
131
description: Gets the student's homeworks
132
+
security:
133
+
- basic_auth: []
123
134
124
135
parameters:
125
136
- name: studentId
@@ -178,6 +189,8 @@ paths:
178
189
operationId: list-classes
179
190
summary: List Classes
180
191
description: Lists the student's classes
192
+
security:
193
+
- basic_auth: []
181
194
parameters:
182
195
- name: studentId
183
196
in: path
@@ -203,6 +216,8 @@ paths:
203
216
operationId: list-lessons
204
217
summary: List Lessons
205
218
description: Gets the student's lessons for a given date
219
+
security:
220
+
- basic_auth: []
206
221
parameters:
207
222
- name: studentId
208
223
in: path
@@ -246,6 +261,8 @@ paths:
246
261
operationId: list-badges
247
262
summary: List Badges
248
263
description: Gets the student's earned badges
264
+
security:
265
+
- basic_auth: []
249
266
parameters:
250
267
- name: studentId
251
268
in: path
@@ -281,6 +298,8 @@ paths:
281
298
operationId: list-announcements
282
299
summary: List Announcements
283
300
description: Gets the student's announcements
301
+
security:
302
+
- basic_auth: []
284
303
parameters:
285
304
- name: studentId
286
305
in: path
@@ -316,6 +335,8 @@ paths:
316
335
operationId: list-detentions
317
336
summary: List Detentions
318
337
description: Gets the student's detentions
338
+
security:
339
+
- basic_auth: []
319
340
parameters:
320
341
- name: studentId
321
342
in: path
@@ -351,6 +372,8 @@ paths:
351
372
operationId: get-attendance
352
373
summary: List Attendance
353
374
description: Gets the student's attendance
375
+
security:
376
+
- basic_auth: []
354
377
parameters:
355
378
- name: studentId
356
379
in: path
@@ -396,6 +419,8 @@ paths:
396
419
operationId: list-pupil-fields
397
420
summary: List Pupil Fields
398
421
description: Gets the student's pupil fields
422
+
security:
423
+
- basic_auth: []
399
424
parameters:
400
425
- name: studentId
401
426
in: path
@@ -431,6 +456,8 @@ paths:
431
456
operationId: list-academic-reports
432
457
summary: List Academic Reports
433
458
description: Get list of academic reports
459
+
security:
460
+
- basic_auth: []
434
461
parameters:
435
462
- name: studentId
436
463
in: query
@@ -456,6 +483,8 @@ paths:
456
483
operationId: get-academic-report
457
484
summary: Get Academic Report
458
485
description: Get academic report by ID
486
+
security:
487
+
- basic_auth: []
459
488
parameters:
460
489
- name: studentId
461
490
in: query
@@ -487,6 +516,8 @@ paths:
487
516
operationId: list-on-report-cards
488
517
summary: List On Report Cards
489
518
description: Get list of on report cards
519
+
security:
520
+
- basic_auth: []
490
521
parameters:
491
522
- name: pupil_id
492
523
in: query
@@ -511,6 +542,8 @@ paths:
511
542
operationId: get-on-report-card
512
543
summary: Get On Report Card
513
544
description: Get on report card by ID
545
+
security:
546
+
- basic_auth: []
514
547
parameters:
515
548
- name: pupil_id
516
549
in: query
@@ -542,6 +575,8 @@ paths:
542
575
operationId: get-on-report-card-summary-comment
543
576
summary: Get On Report Card Summary Comment
544
577
description: Get on report card summary comment by date
Gets basic information about the logged in parent and what access they have.
17
-
This endpoint is also used for revalidating your session id (authentication token).
18
-
19
-
To get your new authentication token, call the endpoint, and use the token in the returned body (`body.meta.session_id`) as your new authentication token.
20
22
21
-
22
-
Access tokens should be refreshed every 180 seconds.
23
+
This endpoint is also used for revalidating your session id (authentication token).
24
+
security:
25
+
- basic_auth: []
23
26
24
27
requestBody:
25
28
content:
@@ -55,6 +58,8 @@ paths:
55
58
operationId: list-pupils
56
59
summary: List Pupils
57
60
description: Get a list of pupils connected to this parent's account
61
+
security:
62
+
- basic_auth: []
58
63
responses:
59
64
"200":
60
65
description: Array of pupils
@@ -85,6 +90,8 @@ paths:
85
90
summary: List Parent Behaviour
86
91
description: >
87
92
Lists the behaviour points for a pupil.
93
+
security:
94
+
- basic_auth: []
88
95
parameters:
89
96
- name: studentId
90
97
in: path
@@ -111,6 +118,8 @@ paths:
111
118
summary: Delete Parent Behaviour Point
112
119
description: >
113
120
Delets a behaviour point from a pupil's record.
121
+
security:
122
+
- basic_auth: []
114
123
requestBody:
115
124
required: true
116
125
content:
@@ -143,6 +152,8 @@ paths:
143
152
summary: Add Parent Behaviour Point
144
153
description: >
145
154
Adds a behaviour point to a pupil's record.
155
+
security:
156
+
- basic_auth: []
146
157
requestBody:
147
158
required: true
148
159
content:
@@ -205,6 +216,8 @@ paths:
205
216
operationId: change-password
206
217
summary: Change Password
207
218
description: Changes the login password for the current parent account
0 commit comments