ClassCharts API Docs

List Attendance

Gets the student's attendance

GET
/attendance/{studentId}
/attendance/{studentId}

The Authorization access token

Authorization

Authorization
Required
Basic <token>

This is the session_id returned when logging in. e.g. Basic eW91IHNob3VsZCBzdGFyIHRoaXMgcmVwbyE=

In: header

Path Parameters

studentId
Required
integer

Query Parameters

fromstring

Format: "date"

tostring

Format: "date"
curl -X GET "https://www.classcharts.com/apiv2student/attendance/0?from=2019-08-24&to=2019-08-24" \
  -H "Authorization: Basic <token>"

Array of attendance dates

{
  "data": {
    "property1": {
      "property1": {
        "code": "string",
        "status": "yes",
        "late_minutes": 0,
        "lesson_name": "string",
        "room_name": "string"
      },
      "property2": {
        "code": "string",
        "status": "yes",
        "late_minutes": 0,
        "lesson_name": "string",
        "room_name": "string"
      }
    },
    "property2": {
      "property1": {
        "code": "string",
        "status": "yes",
        "late_minutes": 0,
        "lesson_name": "string",
        "room_name": "string"
      },
      "property2": {
        "code": "string",
        "status": "yes",
        "late_minutes": 0,
        "lesson_name": "string",
        "room_name": "string"
      }
    }
  },
  "meta": {
    "dates": [
      "string"
    ],
    "sessions": [
      "string"
    ],
    "start_date": "string",
    "end_date": "string",
    "percentage": "string",
    "percentage_singe_august": "string"
  },
  "success": 0
}