Download the PHP package bokbasen/php-sdk-met-api without Composer
On this page you can find all versions of the php package bokbasen/php-sdk-met-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bokbasen/php-sdk-met-api
More information about bokbasen/php-sdk-met-api
Files in bokbasen/php-sdk-met-api
Package php-sdk-met-api
Short Description PHP SDK Bokbasen's Metadata API
License MIT
Homepage https://github.com/Bokbasen/php-sdk-met-api
Informations about the package php-sdk-met-api
php-sdk-met-api
SDK for working against Bokbasen's Metadata API. Currently only exports are supported.
The SDK assumes working knowledge of the API, see documentation: https://bokbasen.jira.com/wiki/spaces/api/pages/61964298/Metadata
Authentication
This SDK requires the Bokbasen API Client, see php-api-client for details on how to implement.
All code examples below assumes that this variable exists:
ONIX Exports
Create ONIX Export client
Use auth object and set your subscription when creating the export object (subscription is based on your contract with Bokbasen. basic, extended or school)
Get ONIX for single ISBN
Download ONIX to file based on a date
This is only used when you do not have a valid next token. Given filename will be appended until all pages are fetched (if $downloadAllPages === true)
Download ONIX to file based on a token
Use $nextToken to get all changes since last execution
Get XML as string
If you do not want to use the SDK to write files for you, use the following methods to get the full Response object for each request. This means you need to implement the header parsing logic yourself.
Object Exports
Object reports has a similar process as ONIX download when it comes to paging. The SDK abstracts the report aspect and download the actual files for you.
Download all objects changes after a certain date
This is only used when you do not have a valid next token.
Download objects to file based on a token
Use $nextToken to get all changes since last execution