Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Alma Users API can return a lower number of results than reported #7

Open
danmichaelo opened this issue Jun 19, 2018 · 0 comments

Comments

@danmichaelo
Copy link
Member

curl -X GET --header 'Accept: application/json; charset=utf-8' --header 'Authorization: apikey {key}' 'https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users?limit=5&q=ALL~linena@uio.no' | jq '.'

gives "total_record_count": 5, but only 3 records are returned. Anonymized response:

{
  "user": [
    {
      "primary_id": "li",
      "first_name": "Li",
      "last_name": "Aker",
      "gender": {
        "value": "FEMALE",
        "desc": "Female"
      },
      "password": "",
      "status": {
        "value": "ACTIVE",
        "desc": "Active"
      },
      "requests": null,
      "loans": null,
      "fees": null,
      "link": "https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users/li"
    },
    {
      "primary_id": "n003548402",
      "first_name": "Stein",
      "last_name": "Gal",
      "gender": {
        "value": "",
        "desc": ""
      },
      "password": "",
      "status": {
        "value": "ACTIVE",
        "desc": "Active"
      },
      "requests": null,
      "loans": null,
      "fees": null,
      "link": "https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users/n003548402"
    },
    {
      "primary_id": "N003548424",
      "first_name": "Sol",
      "last_name": "Storm",
      "gender": {
        "value": "",
        "desc": ""
      },
      "password": "",
      "status": {
        "value": "ACTIVE",
        "desc": "Active"
      },
      "requests": null,
      "loans": null,
      "fees": null,
      "link": "https://api-eu.hosted.exlibrisgroup.com/almaws/v1/users/N003548424"
    }
  ],
  "total_record_count": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant