NAV
shell ruby python csharp php

StandardizedTest

The StandardizedTest object

The StandardizedTest object looks like this in JSON:

{
    "object": "standardized_test",
    "id": 2,
    "name": "ACT",
    "sandbox": true
}
Attribute Required Data Type
id Yes int
name Yes text (50)
sandbox No bool

index

Example code to call this method:

curl "https://yourschool.populiweb.com/api2/standardizedtests" \
-H "Content-Type: application/json" \ 
-H "Authorization: Bearer YOUR_POPULI_API_KEY" \ 
-X GET
require 'httparty'
response = HTTParty.get(
 'https://yourschool.populiweb.com/api2/standardizedtests',
 headers: {
  'Authorization' => 'Bearer YOUR_POPULI_API_KEY'
 },
)
puts response.body
import requests
response = requests.get(
 'https://yourschool.populiweb.com/api2/standardizedtests',
 headers={
  'Authorization': 'Bearer YOUR_POPULI_API_KEY'
 },
)
print(response.json())
using Newtonsoft.Json;
using RestSharp;
var client = new RestClient();
var request = new RestRequest(new Uri("https://yourschool.populiweb.com/api2/standardizedtests"), Method.Get);
request.AddHeader("Authorization", "Bearer YOUR_POPULI_API_KEY");
var response = client.Execute(request);
var response_object = JsonConvert.DeserializeObject(response.Content);
Console.Write(response_object);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://yourschool.populiweb.com/api2/standardizedtests');
curl_setopt($curl, CURLOPT_HTTPHEADER, ['Authorization: Bearer YOUR_POPULI_API_KEY']);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($curl);
$response_decoded = json_decode($response);
var_dump($response_decoded);

Example response:

{
    "object": "list",
    "count": 5,
    "results": 5,
    "results_per_page": null,
    "pages": 1,
    "page": 1,
    "offset": 0,
    "has_more": false,
    "data": [
        {
            "object": "standardized_test",
            "id": 2,
            "name": "ACT"
        }
    ],
    "sandbox": true
}

Retrieves all StandardizedTest objects.

HTTP Request

GET /standardizedtests

Parameters

None

Permissions

One of the following roles is required to call this method:

show

Example code to call this method:

curl "https://yourschool.populiweb.com/api2/standardizedtests/(standardizedtest)" \
-H "Content-Type: application/json" \ 
-H "Authorization: Bearer YOUR_POPULI_API_KEY" \ 
-X GET
require 'httparty'
response = HTTParty.get(
 'https://yourschool.populiweb.com/api2/standardizedtests/(standardizedtest)',
 headers: {
  'Authorization' => 'Bearer YOUR_POPULI_API_KEY'
 },
)
puts response.body
import requests
response = requests.get(
 'https://yourschool.populiweb.com/api2/standardizedtests/(standardizedtest)',
 headers={
  'Authorization': 'Bearer YOUR_POPULI_API_KEY'
 },
)
print(response.json())
using Newtonsoft.Json;
using RestSharp;
var client = new RestClient();
var request = new RestRequest(new Uri("https://yourschool.populiweb.com/api2/standardizedtests/(standardizedtest)"), Method.Get);
request.AddHeader("Authorization", "Bearer YOUR_POPULI_API_KEY");
var response = client.Execute(request);
var response_object = JsonConvert.DeserializeObject(response.Content);
Console.Write(response_object);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://yourschool.populiweb.com/api2/standardizedtests/(standardizedtest)');
curl_setopt($curl, CURLOPT_HTTPHEADER, ['Authorization: Bearer YOUR_POPULI_API_KEY']);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($curl);
$response_decoded = json_decode($response);
var_dump($response_decoded);

Example response:

{
    "object": "standardized_test",
    "id": 2,
    "name": "ACT",
    "sections": [
        {
            "object": "standardized_test_section",
            "id": 3,
            "test_id": 2,
            "name": "Arts",
            "minscore": 1,
            "maxscore": 36,
            "increment": 1,
            "optional": false,
            "version": null,
            "order_id": null,
            "used_in_totals_calc": false
        },
        {
            "object": "standardized_test_section",
            "id": 4,
            "test_id": 2,
            "name": "English",
            "minscore": 1,
            "maxscore": 36,
            "increment": 1,
            "optional": false,
            "version": null,
            "order_id": null,
            "used_in_totals_calc": false
        },
        {
            "object": "standardized_test_section",
            "id": 5,
            "test_id": 2,
            "name": "Math",
            "minscore": 1,
            "maxscore": 36,
            "increment": 1,
            "optional": false,
            "version": null,
            "order_id": null,
            "used_in_totals_calc": false
        }
    ],
    "sandbox": true
}

Retrieves a specific StandardizedTest object.

HTTP Request

GET /standardizedtests/(standardizedtest)

Parameters

No additional parameters are needed beyond the ID of the object being requested that appears in the URL.

Permissions

One of the following roles is required to call this method: