Will run scripts based on codewords in your gmail
git clone https://github.com/stevenharradine/gmail-invoker.git
npm install
- Use this wizard to create or select a project in the Google Developers Console and automatically enable the API. Click the Go to credentials button to continue.
- At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
- Back on the Credentials tab, click the Add credentials button and select OAuth 2.0 client ID.
- Select the application type Other and click the Create button.
- Click OK to dismiss the resulting dialog.
- Click the (Download JSON) button to the right of the client ID. Move this file to your working directory and rename it
client_secret.json
.
Source: https://developers.google.com/drive/web/quickstart/nodejs
module.exports.EMAIL_USER = 'youremail'
module.exports.EMAIL_PASSWORD = 'yourpassword'
node gmail-invoker {{ codeword }} {{ script_path }} [{{ email_addresses }}]
Example:
node gmail-invoker TOPSECRET ./scripts/hello.sh [email protected] [email protected] [email protected]