Webmail API
A unified API to different webmail providers.
Currently supports Gmail & Outlook.
Installation
npm install --save webmail-api
Usage
const createClient = const client = // Addressesconst foo = address: 'foo@example.com' const linus = name: 'Linus Unnebäck' address: 'linus@folkdatorn.se' // Send an emailawait client // Search for emailconst ids = await clientconsole//=> ['1567245ae72d5d2b'] // Fetch email metadataconst meta = await clientconsole//=> {// date: '2018-11-20T15:04:44.134Z',// from: { name: 'Linus Unnebäck', address: 'linus@folkdatorn.se' },// subject: 'Foobar9000'// } // Fetch email bodyconst body = await clientconsole//=> 'Hello, World!' // Archive messageawait client