Service Distribution
curl --request GET \
--url https://api.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution \
--header 'token: <api-key>'import requests
url = "https://api.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution', 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.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <api-key>"
],
]);
$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.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
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.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"total": 123,
"first": "<string>",
"next": "<string>",
"prev": "<string>",
"last": "<string>",
"count": 123,
"offset": 123,
"results": [
{
"sid": "<string>",
"status": "<string>",
"statusReason": "<string>",
"billable": true,
"schedulingModule": "<string>",
"workflowModule": "<string>",
"appointmentDate": "<string>",
"dateClosed": "<string>",
"dateCancelled": "<string>",
"exam": {},
"course": {},
"user": {},
"courseOffering": {},
"serviceType": "<string>"
}
]
}Reports
Service Distribution
Returns a service distribution report for the specified install.
GET
/
v1
/
installs
/
{installSid}
/
reports
/
serviceDistribution
Service Distribution
curl --request GET \
--url https://api.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution \
--header 'token: <api-key>'import requests
url = "https://api.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution', 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.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <api-key>"
],
]);
$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.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
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.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smarterproctoring.com/v1/installs/{installSid}/reports/serviceDistribution")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"total": 123,
"first": "<string>",
"next": "<string>",
"prev": "<string>",
"last": "<string>",
"count": 123,
"offset": 123,
"results": [
{
"sid": "<string>",
"status": "<string>",
"statusReason": "<string>",
"billable": true,
"schedulingModule": "<string>",
"workflowModule": "<string>",
"appointmentDate": "<string>",
"dateClosed": "<string>",
"dateCancelled": "<string>",
"exam": {},
"course": {},
"user": {},
"courseOffering": {},
"serviceType": "<string>"
}
]
}Authorizations
Path Parameters
Install Sid
Pattern:
^AI[a-f0-9]{32}$Query Parameters
Types of services to include in the report
Available options:
automated, automated-with-review, live, virtual-test-center, proctoru, register-blast, ad-hoc, messaging Statuses to include in the report
Available options:
Scheduled, Closed, Cancelled Course offering sid
Pattern:
^CO[a-f0-9]{32}$Course sid
Pattern:
^CU[a-f0-9]{32}$Course title
Course code
Exam title
Exam sid
Pattern:
^EX[a-f0-9]{32}$Appointments after date (inclusive)
Pattern:
.*ZExample:
"1970-01-01T00:00:00.000Z"
Appointments before date (exclusive)
Pattern:
.*ZExample:
"1970-01-01T00:00:00.000Z"
Close date after (inclusive)
Pattern:
.*ZExample:
"1970-01-01T00:00:00.000Z"
Close date before (exclusive)
Pattern:
.*ZExample:
"1970-01-01T00:00:00.000Z"
User sid
Pattern:
^US[a-f0-9]{32}$Filter by billable sessions
Result offset
Required range:
x >= 0Number of items to return
Required range:
x >= 0Key to sort by
Available options:
appointmentDate, closeDate, courseTitle, examTitle Sort order
Available options:
ASC, DESC Was this page helpful?
