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
- GitHub Repository
- Python 3.7+
Node.js
npm install mailingapi
- GitHub Repository
- Node.js 14+
PHP
composer require mailingapi/mailingapi-php
- GitHub Repository
- PHP 8.0+
Ruby
gem install mailingapi
- GitHub Repository
- Ruby 3.0+
Go
go get github.com/MailingApi/mailingapi-go
- GitHub Repository
- Go 1.18+
Elixir
# mix.exs
{:mailingapi, "~> 0.1"}
- GitHub Repository
- Elixir 1.14+
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.