Documentation / SDKs & Libraries

SDKs & Libraries

1 min read

Official client libraries that make it easy to integrate MailingAPI into your application. All SDKs are open-source and available on GitHub.

Official SDKs

Python

pip install mailingapi

Node.js

npm install mailingapi

PHP

composer require mailingapi/mailingapi-php

Ruby

gem install mailingapi

Go

go get github.com/MailingApi/mailingapi-go

Elixir

# mix.exs
{:mailingapi, "~> 0.1"}

Quick example

All SDKs follow the same pattern. Here’s sending an email:

Python:

from mailingapi import MailingAPI

client = MailingAPI(api_key="ob_live_your_key")

client.messages.send(
    from_email="hello@yourdomain.com",
    to="user@example.com",
    subject="Welcome!",
    html="<h1>Hello!</h1>"
)

Node.js:

const { MailingAPI } = require('mailingapi');

const client = new MailingAPI('ob_live_your_key');

await client.messages.send({
  from: 'hello@yourdomain.com',
  to: 'user@example.com',
  subject: 'Welcome!',
  html: '<h1>Hello!</h1>'
});

Contributing

All SDKs are open-source. Found a bug or want to contribute? Open an issue or pull request on the relevant GitHub repository.