<?php // Used for composer based installation require __DIR__ . '/../../vendor/autoload.php'; // Use below for direct download installation //require_once(__DIR__ . '/../../src/Instasent/Abstracts/InstasentClient.php'); //require_once(__DIR__ . '/../../src/Instasent/SmsClient.php'); $instasentClient = new Instasent\SmsClient("my-token"); $response = $instasentClient->sendUnicodeSms("test", "+34647000000", "Unicode test: ña éáÃóú 😀"); echo $response["response_code"]; echo $response["response_body"];
<?php // Used for composer based installation require __DIR__ . '/../../vendor/autoload.php'; // Use below for direct download installation //require_once(__DIR__ . '/../../src/Instasent/Abstracts/InstasentClient.php'); //require_once(__DIR__ . '/../../src/Instasent/SmsClient.php'); $instasentClient = new Instasent\SmsClient("my-token"); $messages = null; for ($i = 0; $i < 100; $i++) { $messages[] = ["allowUnicode" => true, "from" => "test", "to" => "+34647000000", "text" => "Unicode test multi ña éáÃóú 😀"]; } $response = $instasentClient->sendBulkSms($messages); echo $response["response_code"]; echo $response["response_body"];
<?php // Used for composer based installation require __DIR__ . '/../../vendor/autoload.php'; // Use below for direct download installation //require_once(__DIR__ . '/../../src/Instasent/Abstracts/InstasentClient.php'); //require_once(__DIR__ . '/../../src/Instasent/SmsClient.php'); $instasentClient = new Instasent\SmsClient("my-token"); $response = $instasentClient->getSmsById("smsId"); echo $response["response_code"]; echo $response["response_body"];
<?php // Used for composer based installation require __DIR__ . '/../../vendor/autoload.php'; // Use below for direct download installation //require_once(__DIR__ . '/../../src/Instasent/Abstracts/InstasentClient.php'); //require_once(__DIR__ . '/../../src/Instasent/SmsClient.php'); $instasentClient = new Instasent\SmsClient("my-token"); $response = $instasentClient->sendSms("test", "+34647000000", "test message"); echo $response["response_code"]; echo $response["response_body"];