gmail-autoresponder
v1.0.3
Published
Simply change or view gmail autoresponder options from browser
Downloads
24
Maintainers
Readme
gmail-autoresponder
Install
npm i gmail-autoresponder --save
Using
import { GmailAutoresponder } from 'gmail-autoresponder';
// API_KEY is optional
const gmailAutoresponder = new GmailAutoresponder(CLIENT_ID, API_KEY);
const restrictContacts = false; // default
// set vacation settings
gmailAutoresponder.setAutoresponder('HTML Message', 'Topic', restrictContacts).then(
res => console.log('Set Autoresponder', res),
err => console.log('Error while setAutoresponder', err)
);
// reset - turn off vacation settings
gmailAutoresponder.resetAutoresponder().then(
res => console.log('Set Autoresponder', res),
err => console.log('Error while setAutoresponder', err)
);
// get autoresponder settings
gmailAutoresponder.getAutoresponder().then(
res => console.log('Set Autoresponder', res),
err => console.log('Error while setAutoresponder', err)
);
Create API_KEY & CLIENT_ID
Gmail Autoresponder Proof of Concept:
- https://github.com/gkucmierz/gmail-autoresponder-poc
- https://autoresponder-poc.web.app/basic