2015-06-22 146 views
0

我想使用流星谷歌身份驗證與谷歌驅動器的API,但流星認證只給一個訪問令牌,谷​​歌驅動器需要很多其他信息(https://developers.google.com/drive/web/quickstart/quickstart-nodejs像clientID,clientSecret,。 ..)。 可以直接將訪問令牌發送到此函數中?使用流星谷歌身份驗證與谷歌驅動器API

var drive = google.drive({ version: 'v2', auth: auth }); 

非常感謝!

+0

如果與谷歌的開發人員註冊安慰https://console.developers.google.com,你會爲您的應用程序獲取client_id,client_secret。檢查此鏈接https://developers.google.com/drive/web/about-auth和http://stackoverflow.com/questions/17960606/meteor-js-google-oauth-issues – SGC

回答

0

望着那演示中,我將通過運行meteor --settings client_secret.json使用的設置,然後你的代碼中:

authorize(Meteor.settings.web, listFiles);