This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Using Google Drive and Google Mail with a Service Account. | |
// | |
// Amswer to http://stackoverflow.com/questions/37902022/gmail-api-with-nodejs-send-gives-400-bad-request?answertab=active#tab-top | |
// | |
// A service account is pretty much like a normal Google account, except that yo can't get get a "shell" like | |
// the Gmail webapp or Drive webapp into it. To manage email with a Service Account, the administrator for the | |
// domain which owns the email addresses must enable API access for the Service Account. That's described in my | |
// SO post and the links therein. Assuming you've set all that up, it's time to have some fun! | |
// |