UNPKG

@fr3dhugh3s/gmail-tester

Version:

A simple NodeJS gmail client which checks the inbox for specific message existence

28 lines (25 loc) 514 B
const gmail_tester = require("./gmail-tester"); (async () => { const inbox = await gmail_tester.check_inbox( "credentials.json", "token.json", { subject: "", from: "", to: "", wait_time_sec: 10, max_wait_time_sec: 40, include_body: true } ); const msgs = await gmail_tester.get_messages( "credentials.json", "token.json", { subject: "", from: "", to: "", include_body: true } ); })();