有Node.js的Google API库吗?

是否有一个Node.js库将Google的所有API都包含到一个API中? (Google通讯录,Google日历,Google地理定位API等)

注意 :我是googleapis模块的作者。

Google为其API发布了官方支持的节点客户端库。 https://github.com/google/google-api-nodejs-client它也可用于npm:

 npm install googleapis 

使用其句柄和版本加载API,然后发出请求:

 googleapis.discover('urlshortener', 'v1').execute(function(err, client) { // make requests here client.urlshortener.url.get({ shortUrl: 'http://goo.gl/DdUKX' }).execute(console.log); }); 

它还支持批量请求和OAuth 2.0。

我没有尝试过,但通过npmjs.orgsearchfind它: https ://npmjs.org/

https://github.com/JimmyBoh/node-google-api

Temboo SDK可用于Node.js,并提供了访问公平的Google API的统一方式:

  • OAuth身份validation
  • Analytics(分析)
  • 查看
  • 日历
  • 往来
  • 路线
  • DistanceMatrix
  • 驾驶
  • 海拔
  • 天气预报
  • Gmail的
  • 地方
  • 电子表格

请参阅https://live.temboo.com/library/Library/Google/ – SDK是一个开放的下载,但您需要一个(免费的)Temboo帐户来处理任何事情。

(完全披露:我在Temboo工作。)