Get a student's daily attendance
One student’s records over up to 366 days, oldest first. Scope: attendance-daily. Days with no record are omitted.
GET
/
students
/
{studentId}
/
attendance
Get a student's daily attendance
curl --request GET \
--url https://api.teachwithscout.com/v1/students/{studentId}/attendance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.teachwithscout.com/v1/students/{studentId}/attendance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.teachwithscout.com/v1/students/{studentId}/attendance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.teachwithscout.com/v1/students/{studentId}/attendance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.teachwithscout.com/v1/students/{studentId}/attendance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.teachwithscout.com/v1/students/{studentId}/attendance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teachwithscout.com/v1/students/{studentId}/attendance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"records": [
{
"studentId": "<string>",
"date": "<string>",
"attendanceCode": "<string>",
"attendanceCodeDescription": "<string>",
"status": "present",
"excused": true,
"lastModified": "<string>",
"minutesLate": 123,
"arrivalTime": "<string>",
"source": "vendor",
"enteredBy": "<string>"
}
]
}{
"status": 400,
"message": "<string>"
}{
"status": 403,
"message": "<string>"
}{
"status": 404,
"message": "<string>"
}Authorizations
Bearer access token from POST /oauth/token (OAuth 2.0 client credentials; the OneRoster /ims/oneroster/v1p1/token and /v1p2/token URLs are aliases). Send it as Authorization: Bearer <access_token>. Tokens expire after 1 hour and carry your API client's granted scopes — an endpoint outside them returns 403.
Query Parameters
⌘I
Get a student's daily attendance
curl --request GET \
--url https://api.teachwithscout.com/v1/students/{studentId}/attendance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.teachwithscout.com/v1/students/{studentId}/attendance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.teachwithscout.com/v1/students/{studentId}/attendance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.teachwithscout.com/v1/students/{studentId}/attendance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.teachwithscout.com/v1/students/{studentId}/attendance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.teachwithscout.com/v1/students/{studentId}/attendance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teachwithscout.com/v1/students/{studentId}/attendance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"records": [
{
"studentId": "<string>",
"date": "<string>",
"attendanceCode": "<string>",
"attendanceCodeDescription": "<string>",
"status": "present",
"excused": true,
"lastModified": "<string>",
"minutesLate": 123,
"arrivalTime": "<string>",
"source": "vendor",
"enteredBy": "<string>"
}
]
}{
"status": 400,
"message": "<string>"
}{
"status": 403,
"message": "<string>"
}{
"status": 404,
"message": "<string>"
}