Ejemplo n.º 1
1
<?php

use Sendinblue\Mailin;
/*
 * This will initiate the API with the endpoint and your access key.
 *
 */
$mailin = new Mailin('https://api.sendinblue.com/v2.0', 'Your access key');
/*
 * This will send a transactional SMS
 *
 */
/** Prepare variables for easy use **/
$data = array("to" => "+331234567890", "from" => "From", "text" => "Good morning - test", "web_url" => "http://example.com", "tag" => "Tag1", "type" => "");
var_dump($mailin->send_sms($data));
Ejemplo n.º 2
0
<?php

use Sendinblue\Mailin;
/*
 * This will initiate the API with the endpoint and your access key.
 *
 */
$mailin = new Mailin('https://api.sendinblue.com/v2.0', 'Your access key');
/*
 * This will send an SMS
 *
 */
var_dump($mailin->send_sms("1231231313", "From!", "This is a test", "http://example.com", "tag1"));