Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
NodeJS client for Google APIs (or any other API that supports Google discovery service)
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
README.md
package.json

README.md

discovery-services-client

NodeJS client for Google APIs (or any other API that supports Google discovery service)

Many of Google's APIs can now be accessed via a discovery service, see Google APIs Discovery Service. This package queries that (or a similar) discovery service and generates Node.js bindings to the service.

Here's a simple example:

var google = require('discovery-services-client');

google.generateAPI({
//    apiKey: 'put-your-api-key-here-if-required'
}, function (err, api) {
    api.plus.people.search({
        query: 'Dave',
        maxResults: 5
    }, function (err, res, user) {
        if (err) {
            console.log('ERROR:', err);
            return;
        }
        console.log(user);
    });
});

Simple, huh?

Something went wrong with that request. Please try again.