0.0.5 • Published 6 years ago
puppeteer-email-session v0.0.5
puppeteer-email-session
Holds state for an authenticated puppeteer email session.
Install
npm install --save puppeteer-email-session
API
Table of Contents
PuppeteerEmailSession
Holds state for an authenticated puppeteer email session.
Type: function (opts)
opts
object Options
username
Authenticated user's username.
Type: string
Authenticated user's email.
Type: string
provider
Email provider to use.
Type: PuppeteerEmailProvider
browser
Puppeteer Browser to use.
Type: string
isAuthenticated
Whether or not this session is currently authenticated with the given email provider.
Type: boolean
signout
Signs out of this session.
Type: function (): Promise
sendEmail
Sends an email from this session.
Type: function (email, opts): Promise
getEmails
Fetches emails from the inbox of this session's account.
Type: function (opts)
close
Closes the underlying Puppeteer Browser instance, effectively ending this session.
Type: function (): Promise
Related
- puppeteer-email - Email automation driven by headless chrome.
License
MIT © Travis Fischer