Skip to main content

A python client for the BotMailRoom API

Project description

BotMailroom Python Client

The BotMailroom Python client allows you to interact with the BotMailroom API. It provides both synchronous and 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

pip install botmailroom

3. Initialize the Client

from botmailroom import BotMailRoom

client = BotMailRoom(api_key="your_api_key") # or set the BOTMAILROOM_API_KEY environment variable

4. Create an Inbox

inbox = client.create_inbox(name="My Inbox", email_address="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 send_email method.

You can then check for new emails using the get_emails method.

emails = client.get_emails(inbox_id=inbox.id)
print(emails)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

botmailroom-0.0.12.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

botmailroom-0.0.12-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file botmailroom-0.0.12.tar.gz.

File metadata

  • Download URL: botmailroom-0.0.12.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for botmailroom-0.0.12.tar.gz
Algorithm Hash digest
SHA256 37f2342558c8cc75d839da1b970de806fa7011ba47d3083c4c3976d09be40529
MD5 e8c60616897c2c5d08a3275d85008772
BLAKE2b-256 1c8b17c02ad215301b32bebe7ab59661d9139a44567b74a7371be87e0c5abac7

See more details on using hashes here.

File details

Details for the file botmailroom-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: botmailroom-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for botmailroom-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c0cade34cd06635098e03075b2f35616f529cec5a1e3b94e27bc56ecacd7df4c
MD5 95059ed5a8df49408bdc5192e44664ae
BLAKE2b-256 30b31f4d61d3eb0a4d4f0315dddef36c7a3c52e87f8524bf5884300d6926a652

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page