PHP code example of smspool / smspool-php
1. Go to this page and download the library: Download smspool/smspool-php 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/ */
smspool / smspool-php example snippets
$config = SMSPool\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_API_KEY');
$info = new SMSPool\Api\InformationApi(new GuzzleHttp\Client(), $config);
print_r($info->requestBalance());
$countries = $info->countryRetrieveAll();
$order = (new SMSPool\Api\SMSApi(new GuzzleHttp\Client(), $config))->purchaseSms('1', 'US');
bash
composer