NAV
shell ruby python csharp php

LibraryResourceType

The LibraryResourceType object

The LibraryResourceType object looks like this in JSON:

{
    "object": "library_resource_type",
    "id": 10,
    "name": "Article",
    "plural_name": "Articles",
    "description": null,
    "abbrv": null,
    "parent_type_id": 9,
    "image_name": null,
    "marc_leader_type": null,
    "added_at": "2009-09-23T05:20:56+00:00",
    "updated_at": "2009-09-23T05:20:56+00:00",
    "sandbox": true,
    "api_version": null
}
Attribute Required Data Type
id Yes int
name Yes text (50)
plural_name Yes text (50)
description No text (255)
abbrv No text (255)
parent_type_id No int
image_name No text (255)
marc_leader_type No text (10)
added_at No datetime
updated_at No datetime
sandbox No bool
api_version No --

index

Example code to call this method:

curl "https://yourschool.populiweb.com/api2/libraryresourcetypes" \
-H "Content-Type: application/json" \ 
-H "Authorization: Bearer YOUR_POPULI_API_KEY" \ 
-X GET
require 'httparty'
response = HTTParty.get(
 'https://yourschool.populiweb.com/api2/libraryresourcetypes',
 headers: {
  'Authorization' => 'Bearer YOUR_POPULI_API_KEY'
 },
)
puts response.body
import requests
response = requests.get(
 'https://yourschool.populiweb.com/api2/libraryresourcetypes',
 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/libraryresourcetypes"), 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/libraryresourcetypes');
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": 29,
    "results": 29,
    "results_per_page": null,
    "pages": 1,
    "page": 1,
    "offset": 0,
    "has_more": false,
    "data": [
        {
            "object": "library_resource_type",
            "id": 10,
            "name": "Article",
            "plural_name": "Articles",
            "description": null,
            "abbrv": null,
            "parent_type_id": 9,
            "image_name": null,
            "marc_leader_type": null,
            "added_at": "2009-09-23T05:20:56+00:00",
            "updated_at": "2009-09-23T05:20:56+00:00"
        }
    ],
    "sandbox": true,
    "api_version": "2026-07-13"
}

Retrieves all LibraryResourceType objects.

HTTP Request

GET /libraryresourcetypes

Parameters

None

Permissions

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