[英]Using Meteor Google Auth with Google Drive API
我正在尝试将Meteor Google Auth与Google Drive API一起使用,但Meteor Auth仅提供访问令牌,而Google Drive需要很多其他信息( https://developers.google.com/drive/web/quickstart/quickstart- nodejs,例如clientID,clientSecret等)。 可以直接将访问令牌发送到此函数中吗?
var drive = google.drive({ version: 'v2', auth: auth });
非常感谢!
看那个演示,我将通过运行meteor --settings client_secret.json
然后在您的代码中使用设置:
authorize(Meteor.settings.web, listFiles);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.