コード例 #1
1
ファイル: tutorial3.php プロジェクト: ddisseny/mailin-api-php
<?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));
コード例 #2
0
ファイル: tutorial3.php プロジェクト: sasaaa/mailin-api-php
<?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"));