如何在流星中访问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);
})
}
}
})