npm install
Read below to create Gmail API credential.
https://developers.google.com/gmail/api/quickstart/nodejs
Put the credential file (names creadential.json
) under ./gmail/
directory.
See lines in main.js
. You can't miss where to edit.
node ./main.js