email-api-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Email API Client (TypeScript)

Hehe :))

Installation

To install the Email API Client, run the following command:

npm install email-api-client

Example Usage

import { VeerEmailService, BizflyEmailService } from "email-api-client";

const api = new VeerEmailService({
  email: "email",
  password: "password",
  cookie: "cookie",
});

// Get Email
const emails = await api.getEmails();
// Returns: EmailCollection

// Email Filter
await emails.filter({
    subject: 'subject',
    sender: {
        email: 'email',
        name: 'name',
    },
    bodyRegex: 'regex',
    descRegex: 'regex',
    fromTimestamp: 0,
    unread: true;
})
// Returns: EmailCollection

// read Email Html content
const htmlString = await emails[0].getFullContent().getMessage(0).getBody();


const bizfly = new BizflyEmailService({
  access_token: 'access_token',
})

// same as above

Readme

Keywords

Package Sidebar

Install

npm i email-api-client

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

94.9 kB

Total Files

20

Last publish

Collaborators

  • vannguyenba