← Back to Docs

SDKs & Libraries

Official libraries for popular programming languages

Python

Python

pip install sendbaba
from sendbaba import SendBaba

client = SendBaba("sb_live_xxx")
client.send(
    to="user@example.com",
    subject="Hello!",
    html="<h1>Hi</h1>"
)
Node.js

Node.js

npm install sendbaba
const SendBaba = require('sendbaba');

const client = new SendBaba('sb_live_xxx');
await client.send({
    to: 'user@example.com',
    subject: 'Hello!',
    html: '<h1>Hi</h1>'
});
PHP

PHP

composer require sendbaba/sendbaba
use SendBaba\Client;

$client = new Client('sb_live_xxx');
$client->send([
    'to' => 'user@example.com',
    'subject' => 'Hello!',
    'html' => '<h1>Hi</h1>'
]);
Ruby

Ruby

gem install sendbaba
require 'sendbaba'

client = SendBaba::Client.new('sb_live_xxx')
client.send(
  to: 'user@example.com',
  subject: 'Hello!',
  html: '<h1>Hi</h1>'
)

Need a different language?

Our REST API works with any language that can make HTTP requests.

View API Reference →