PHP code example of isendpro / sms-api
1. Go to this page and download the library: Download isendpro/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/ */
isendpro / sms-api example snippets
_instance = new Isendpro\Api\AddShortlinkApi();
$addshortlinkrequest = new \Isendpro\Model\ShortlinkRequest(); // \Isendpro\Model\ShortlinkRequest | add sub account request
try {
$result = $api_instance->addShortlink($addshortlinkrequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AddShortlinkApi->addShortlink: ', $e->getMessage(), PHP_EOL;
}