pip install sendbaba
from sendbaba import SendBaba
client = SendBaba("sb_live_xxx")
client.send(
to="user@example.com",
subject="Hello!",
html="<h1>Hi</h1>"
)
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>'
});
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>'
]);
gem install sendbaba
require 'sendbaba'
client = SendBaba::Client.new('sb_live_xxx')
client.send(
to: 'user@example.com',
subject: 'Hello!',
html: '<h1>Hi</h1>'
)
Our REST API works with any language that can make HTTP requests.
View API Reference →