ClassCharts API Docs

Get Student Code

Gets the student's student code

POST
/getcode
/getcode

The Authorization access token

Authorization

Authorization
Required
Basic <token>

This is the session_id returned when logging in. 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: Basic <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "date": "2019-08-24"
  }'

Student code

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