Get Student Code

Gets the student's student code

POST
/getcode

Authorization

Authorization<token>

This is the session_id returned when logging in. It must be prefixed with Basic. e.g. Basic eW91IHNob3VsZCBzdGFyIHRoaXMgcmVwbyE=

In: header

Request Body

application/x-www-form-urlencodedRequired
datestring

Date of birth in the format YYYY-MM-DD

Format: "date"
curl -X POST "https://www.classcharts.com/apiv2student/getcode" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d 'date=2019-08-24'

Student code

{
  "data": {
    "code": "string"
  },
  "success": 0
}