Api  >  Library Patrons Service


Library Patrons Service

Service URL /v1/libraries/{libraryId}/patrons

Service Endpoints


Patrons: Get all patrons

Endpoint URL /v1/libraries/{libraryId}/patrons/
Description
Gets patrons for a library
Http Messages
HTTP GET Request
Fiddler Request
GET /v1/libraries/{libraryId}/patrons HTTP/1.1
User-Agent: fiddler
Authorization: basic {basicToken}
Host: api.rbdigital.stage
Accept: application/json

HTTP GET Request
Response
[
  {
    "libraryId": 1062,
    "patronId": 91747,
    "oneClickPatronId": 0,
    "gatewayPatronId": 0,
    "libraryCardNumber": "2700989934",
    "userName": "2701239937",
    "email": "drner@apl.net",
    "postalCode": "20680",
    "isActive": true,
    "source": "oneclick",
    "libraryName": "RBdigital Library",
    "firstName": "Donnie",
    "lastName": "Haley"
  },
  {
    "libraryId": 1062,
    "patronId": 937746,
    "oneClickPatronId": 0,
    "gatewayPatronId": 0,
    "libraryCardNumber": "27327622750",
    "userName": "afleer",
    "email": "afvster@apl.net",
    "postalCode": "21409",
    "isActive": true,
    "source": "oneclick",
    "libraryName": "RBdigital Library",
    "firstName": "dan",
    "lastName": "ertang"
  },
  {
    "libraryId": 1062,
    "patronId": 904431,
    "oneClickPatronId": 0,
    "gatewayPatronId": 0,
    "libraryCardNumber": "2861253976",
    "userName": "agross76",
    "email": "agrsimp@gmail.com",
    "postalCode": "19038",
    "isActive": true,
    "source": "oneclick",
    "libraryName": "RBdigital Library",
    "firstName": "mandy",
    "lastName": "mindel"
  },...
]
 


Patrons: Get Patron

Endpoint URL /v1/libraries/{libraryId}/patrons/{patronId}
Description
Gets a patron by their Id
Http Messages
HTTP GET Request
Fiddler Request
GET /v1/libraries/{libraryId}/patrons/780808 HTTP/1.1
UserAgent: robobob
Host: api.rbdigital.com
Authorization: basic {basicToken}
Content-Type: application/json

HTTP GET Response
Response
{
  "libraryId": 1062,
  "patronId": 780808,
  "oneClickPatronId": 780808,
  "gatewayPatronId": 2053152,
  "libraryCardNumber": "",
  "userName": "SunnyBoy",
  "email": "sunny@boy.com",
  "postalCode": "Postal Code",
  "isActive": true,
  "source": "auth",
  "libraryName": "RBdigital Library",
  "firstName": "sunny",
  "lastName": "boy",
  "preferences": [
    {
      "id": 4202454,
      "patronId": 780808,
      "name": "DEFAULT_DEVICE",
      "value": "WMA"
    },
    {
      "id": 4603775,
      "patronId": 780808,
      "name": "GLOBAL_FORMAT_PREFERENCE",
      "value": "ALL"
    },
    {
      "id": 4603776,
      "patronId": 780808,
      "name": "EZMPPREF_DEFAULT_PLAYER",
      "value": "YES"
    },
    {
      "id": 4603777,
      "patronId": 780808,
      "name": "EZMPPREF_AUTODOWN_TITLES",
      "value": "YES"
    },
    {
      "id": 4603778,
      "patronId": 780808,
      "name": "EPUB_SUPPORT",
      "value": "NO"
    },
    {
      "id": 4603779,
      "patronId": 780808,
      "name": "SEARCH_SCOPE",
      "value": "ALL"
    },
    {
      "id": 4603780,
      "patronId": 780808,
      "name": "EREADER_DESKTOP_AUTODOWNLOAD",
      "value": "NO"
    }
  ]
}