PHP code example of textflow / sms-api
1. Go to this page and download the library: Download textflow/sms-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
textflow / sms-api example snippets
$client = new TextFlowClient("YOUR_API_KEY");
$client->send_sms("+38112312341", "SMS body...");
$res = $client->send_sms("+38112312341", "SMS body...");
if ($res->ok)
var_dump($res->data);
else
var_dump($res->message);