New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

botmailroom

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botmailroom

TypeScript client for the BotMailRoom API

0.0.12
latest
Source
npm
Version published
Weekly downloads
1
-75%
Maintainers
0
Weekly downloads
 
Created
Source

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:

  • Using a mail client of your choice.
  • 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);

Keywords

email

FAQs

Package last updated on 24 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts