ClassCharts API Docs

List Behaviour

Gets the student's behaviour.

GET
/behaviour/{studentId}
/behaviour/{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/behaviour/0?from=2019-08-24&to=2019-08-24" \
  -H "Authorization: Basic <token>"

Array of behaviour points

{
  "data": {
    "timeline": [
      {
        "positive": 0,
        "negative": 0,
        "name": "string",
        "start": "string",
        "end": "string"
      }
    ],
    "positive_reasons": {
      "property1": 0,
      "property2": 0
    },
    "negative_reasons": {
      "property1": 0,
      "property2": 0
    },
    "other_positive": [
      "string"
    ],
    "other_negative": [
      "string"
    ],
    "other_positive_count": [
      {}
    ],
    "other_negative_count": [
      {}
    ]
  },
  "meta": {
    "start_date": "string",
    "end_date": "string",
    "step_size": "string"
  },
  "success": 0
}