【问题标题】:Using Meteor Google Auth with Google Drive API将 Meteor Google Auth 与 Google Drive API 一起使用
【发布时间】:2015-09-07 19:13:53
【问题描述】:

我正在尝试将 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 });

非常感谢!

【问题讨论】:

标签: javascript node.js meteor google-drive-api


【解决方案1】:

看看那个演示,我会通过运行 meteor --settings client_secret.json 然后在你的代码中使用设置:

authorize(Meteor.settings.web, listFiles);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-26
    • 1970-01-01
    • 1970-01-01
    • 2016-07-16
    • 1970-01-01
    相关资源
    最近更新 更多