dpla
v0.1.0
Published
API client for the Digital Public Library of America
Downloads
24
Readme
dpla
API client for the Digital Public Library of America
Installation
npm install dpla
Basic Use
var dpla = require('dpla')('APIKEY');
dpla({
uri: '/items',
search: {
q: 'fruit+AND+banana'
}
}, function (err, results) {
// Yay data!
});
Complex Search Queries
var dpla = require('dpla')('APIKEY');
dpla({
uri: '/items',
search: {
'q': 'atl*',
'sourceResource.title': 'africa',
'page_size': 25,
'page': 2
}
}, function (err, results) {
// Even more data!
});
Testing
npm test