Closed nyarenbee closed 9 years ago
Check out this closed issue where someone reported a similar issue: https://github.com/SpiderStrategies/node-gmail-api/issues/2
Specifically this commit: https://github.com/SpiderStrategies/node-gmail-api/commit/293c4080a30f74480fda6bd4c418fec61fc4a538
You'll need to read up on oauth, specifically how google handles oauth. Once you obtain the oauth key, you can use this module.
@nathanbowser, I'm also getting the Invalid Credentials error. When you mentioned the oauth key
, which key is this? The Client ID
or Client Secret
on the Google Developers Dashboard?
And, if using Service Account Keys, which key should this be?
I'm not sure, @casalot. You'll have to experiment with your oauth setup. We use passport and authenticate like this:
passport.use('google-apps', new GoogleStrategy({
clientID: clientId,
clientSecret: clientSecret,
callbackURL: callback
}, function (accessToken, tokenSecret, params, profile, done) {
// Use accessToken when communicating with the node-gmail-api
})
Am I missing anything? not sure what I should be putting in 'key'. It would be great if you could provide complete example.
Getting: