Reputation: 19918
Is there a Node.js library that covers all of Google's APIs into a single API? (Google Contacts, Google Calendar, Google Geolocations API, etc.)
Upvotes: 11
Views: 9584
Reputation: 9213
Note: I'm the author of googleapis
module.
Google released an officially supported node client library for its APIs. https://github.com/google/google-api-nodejs-client It's also available on npm:
npm install googleapis
Load an API with its handle and version, then make requests:
googleapis.discover('urlshortener', 'v1').execute(function(err, client) {
// make requests here
client.urlshortener.url.get({ shortUrl: 'http://goo.gl/DdUKX' }).execute(console.log);
});
It also supports batch requests and OAuth 2.0.
Upvotes: 23
Reputation: 1157
The Temboo SDK is available for Node.js, and provides a uniform way of accessing a fair swath of the Google APIs:
See https://live.temboo.com/library/Library/Google/ -- the SDK is an open download, but you need a (free) Temboo account to do anything with it.
(Full disclosure: I work at Temboo.)
Upvotes: 1
Reputation: 8855
I've not tried this but found it via npmjs.org search: https://npmjs.org/
https://github.com/JimmyBoh/node-google-api
Upvotes: 2