Dashboard da Unidade
curl --request GET \
--url https://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboardimport requests
url = "https://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard', 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://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard")
.asString();require 'uri'
require 'net/http'
url = URI("https://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"consumeContent": [
{}
],
"access": {
"monthly": [
{
"month": "<string>",
"access": 123
}
],
"daily": [
{}
],
"hourly": [
{}
]
},
"numbers": {
"responsibles": 123,
"teachers": 123,
"students": 123,
"matriculations": 123,
"courses": 123,
"classes": 123,
"contents": 123
}
}
}Relatorios
Dashboard da Unidade
Retorna os dados de consumo exibidos no dashboard da unidade desejada.
GET
/
api
/
reports
/
school
/
{school_id}
/
dashboard
Dashboard da Unidade
curl --request GET \
--url https://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboardimport requests
url = "https://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard', 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://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard")
.asString();require 'uri'
require 'net/http'
url = URI("https://kong.api.toolzz.com.br/api/reports/school/{school_id}/dashboard")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"consumeContent": [
{}
],
"access": {
"monthly": [
{
"month": "<string>",
"access": 123
}
],
"daily": [
{}
],
"hourly": [
{}
]
},
"numbers": {
"responsibles": 123,
"teachers": 123,
"students": 123,
"matriculations": 123,
"courses": 123,
"classes": 123,
"contents": 123
}
}
}Parâmetros
string
required
Número identificador da escola.
Antes de utilizar este endpoint, certifique-se de possuir o token de autorização.
Descrição da Resposta
Abaixo está um exemplo da resposta retornada por este endpoint.object
Contém os dados estatísticos.
Show properties
Show properties
array
Lista de conteúdos consumidos.
object

