Naivete Precedes Misrepresentation
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    dplapublic

    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

    Keywords

    none

    install

    npm i dpla

    Downloadsweekly downloads

    2

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar