rijksmuseum-typescript-api
Rijksmuseum API Wrapper made with Typescript and RxJS
Install
npm i rijksmuseum-typescript-api
Usage
let api: RijksmuseumClient = new RijksmuseumClient('<API_KEY>');
api.artwork.getById('SK-C-1454').subscribe(artwork => {
console.log(`"${artwork.title}" was created by ${artwork.principalMaker}`);
});
const criteria = new SearchCriteria();
criteria.page = 1;
criteria.page_result_count = 25;
criteria.type = "painting";
api.artwork.search().subscribe(searchResults => {
console.log(`A total of ${searchResults.total_results} artworks has been found`);
});