如何在流星中使用Google API?

时间:2016-08-30 15:39:23

标签: meteor google-api

如何在流星中访问google api数据。我创建了一个带有地图api,联系人api和google + api的谷歌应用程序,我有api密钥,客户端ID,密码和用户访问令牌。我只想使用meteor Http.call()来访问用户的数据,但它不起作用。我得到的错误是"未经验证的使用超出。继续使用需要注册"

Meteor.loginWithGoogle({
  requestPermissions: ['email']
}, (err) => {
    if (err) {
      alert("Đăng nhập thất bại")
    } else {
        HTTP.call("GET", "googleapis.com/plus/v1/people/109512668573472269428/people/visible?maxResults=100", function(err, result) {
          console.log(result);
        })
      }
  }
})

0 个答案:

没有答案