Hehe :))
To install the Email API Client, run the following command:
npm install email-api-client
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