0.0.12 • Published 7 months ago

botmailroom v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

BotMailroom TypeScript Client

The BotMailroom TypeScript client allows you to interact with the BotMailroom API. It provides asynchronous methods for interacting with the API.

Quickstart

1. Get an API Key

You can get an API key by signing up for a BotMailroom account and creating an API key at https://auth.botmailroom.com/account/api_keys

2. Install the Client

npm install botmailroom
# or
yarn add botmailroom

3. Initialize the Client

import { BotMailRoom } from "botmailroom";

const client = new BotMailRoom("your_api_key"); // or set the BOTMAILROOM_API_KEY environment variable

4. Create an Inbox

const inbox = await client.createInbox(
  "My Inbox",
  "CHANGE_THIS@inbox.botmailroom.com"
);

5. Check Emails

Unless you have specific allow and block rules that prevent it, you will receive an email from support@inbox.botmailroom.com after you create an inbox for the first time. If you'd like to send a test email to your inbox, you can do so by:

  1. Using a mail client of your choice.
  2. Sending a request with the sendEmail method:
await client.sendEmail(inbox.id, "Test Email", "Hello from BotMailroom!", [
  "recipient@example.com",
]);

You can then check for new emails using the getEmails method:

const emails = await client.getEmails(true, inbox.id);
console.log(emails);
0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.1

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.0

8 months ago