...
Note that if you do lookup on isbn, all versions of the book will be returned, not just the latest one.
Info |
---|
New Authentication & URLs introduced Q2 2024 |
URL |
|
Method
GET
Request
headers
Authorization
|
|
Date
Required
| |||
Method |
| ||
Request | Authorization | Required | The token acquired from the Authentication Service . Audience: Example: |
Query | after | Required if next not given | |
next | Required if after not given | ||
pagesize | optional | (default and max value is 10000) | |
Response | Content-Type | application/atom+xml;charset=UTF-8 | |
Next | next token for next page | ||
Link | link to next page | ||
Response | ATOM Inventory XML format (same format as before, however only latest version of each book is returned and some fields are removed) | ||
Returns |
| OK | |
| On error |
Curl example
Initial load using after
(timestamp) - if you are not using your persisted next
from last call/session
Code Block |
---|
curl -i \
-H "Authorization: Bearer <token>" \
"https://api.bokbasen.io/dds/inventory/v2?after=20140501120000"
HTTP/1.1 200 OK
Date: Fri, 07 Aug 2015 11:19:45 GMT
Content-Type: application/atom+xml;charset=UTF-8
(ATOM Inventory XML) |
Curl example
Status | ||||
---|---|---|---|---|
|
Initial load using after
(timestamp) - if you are not using your persisted next
from last call/session
Code Block |
---|
curl -i \
-H "Authorization: Boknett TGT-19933-EcDNpJfVcJNrpcMeGvGKcfUHvV1W2MR50zb066X6vTZVTypXBQ-login.boknett.no" \
-H "Date: Fri, 07 Aug 2015 11:18:39 GMT" \
"https://api.dds.boknett.no/v2/inventory/?after=20140501120000"
HTTP/1.1 200 OK
Date: Fri, 07 Aug 2015 11:19:45 GMT
Content-Type: application/atom+xml;charset=UTF-8
(ATOM Inventory XML) |
ATOM Inventory XML format for v2
...
Inventory XML element documentation
Element | Explanation |
---|---|
| Title of book |
| Name of author |
| The id of the digital resource representing the book. (Referred to as uuid or reId) Note that this ID can change at any time if the publisher of the book publishes a new version of the digital file. |
| Last time resource was updated |
| ISBN of book |
| Id of publisher |
| Format of the file (always MP3 for audio books even if they are distributed in different formats) |
| What kind of DRM protection the book have, possible values are: SDRM, TDRM, NODRM, or UNKNOWN |
| Version number for the digital resource. Starts with 1 and increments if new version of the digital book is published. |
| Date book was first published |
| Date book was deleted (empty value if not deleted) |
| If the books in published, you cannot initiate downloads on a book that is not published. |
| Role based, do you as an integrator have access to this book? Must be true in order for you to sell the title. |
| If excerpts are available through DDS. (Will always be false for audio books as these are distributed through the metadata API.) |
Get inventory (v1)
Status | ||||
---|---|---|---|---|
|
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
The get inventory service can give data on your entire catalogue or detailed information on one specific title.
Details on state and fromDate / toDate parametersThese parameters works together differently based on which data type the field in state has. For all fields that are dates (UNPUBLISHED, CREATED, MODIFIED, FIRST_PUBLISHED, DELETED) the fromDate / toDate parameters are used in combination with the state field. So state=MODIFIED&fromDate=08082015&toDate=10082015 will only returned books that are modified in this time period. If not state is given in combination with the date fields MODIFIED will be used as default. For boolean fields (PUBLISHED, ACCESS) the dateFields have no impact and state=ACCESS will just return all books you have access to. Example (curl)Download inventory for your user.
ATOM Inventory XML formatExample XML:
|
...