Node.js API client for the Digital Public Library of America
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test Update tests and readme Aug 4, 2013
.gitignore
.travis.yml
LICENSE.md
README.md
makefile
package.json

README.md

dpla

API client for the Digital Public Library of America

Build Status

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