Skip to main content

A library to access the mailbox.org Business API.

Project description

mailbox-org-api

A library to access the mailbox.org Business API.

Motivation and purpose

The goal is to provide a comprehensive library that can easily be used to integrate the business features at mailbox.org.

Installation

Using pip:

pip install mailbox-org-api

Directly from source:

pip install git+https://github.com/heshsum/mailbox-org-api

Usage

Basic usage is fairly straightforward:

from mailbox_org_api import APIClient

username = 'foo'
password = 'bar'

# Initializing
api_connection = APIClient.APIClient()

# Testing with hello.world
api_connection.hello_world()

# Creating a new API session
api_connection.auth(username, password)

# Testing the session with hello.innerworld
api_connection.hello_innerworld()

# Closing the session
api_connection.deauth()

The implemented functions follow the naming scheme of the API, but with underscores instead of points (e.g. mail_add() for of mail.add).

Here be dragons

  1. I'm not a programmer. I'm not very good at this. Be aware of my incompetence.
  2. Implementation is not complete. Not all functions of the API have been implemented
  3. Type hinting is available for most functions, but not all of them.
    E.g. mail_add() accepts kwargs due to the number of available attributes. In that case type errors will be returned if wrong types are provided.

API documentation

mailbox.org provides API documentation here: https://api.mailbox.org

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

mailbox_org_api-0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

mailbox_org_api-0.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file mailbox_org_api-0.2.tar.gz.

File metadata

  • Download URL: mailbox_org_api-0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for mailbox_org_api-0.2.tar.gz
Algorithm Hash digest
SHA256 22106458fd513b348e79801eee1c90be2fc142604ebf016377b824e09fb9eec7
MD5 600d6258b437a72aeef5677ef74ebe61
BLAKE2b-256 68af22bc4f76f5795512e555f361f1a500d97b04f936d70d9bb016f348d4642f

See more details on using hashes here.

File details

Details for the file mailbox_org_api-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mailbox_org_api-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d34ca0b66003c6fddd7a2496f1c5f1000f85abd40417f65ba65529e25df422b8
MD5 f665180027722c43eba6f4511a6849bc
BLAKE2b-256 3db97f4b26e8188e070b1e7d6ccbe97134ca0d66c106124d51d9d0a81d5383f4

See more details on using hashes here.

Supported by

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