PHP code example of oromedialab / php-api-service
1. Go to this page and download the library: Download oromedialab/php-api-service 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/ */
oromedialab / php-api-service example snippets
use Oml\PHPAPIService\Twilio\SMS;
$accountSid = 'xxxxxxxxxxx';
$authToken = 'xxxxxxxxxxx';
$sms = new SMS\Compose($accountSid, $authToken);
$sms->setFrom('xxx-xxx-xxx');
$sms->setTo('xxx-xxx-xxx');
$sms->setMessage('Lorem ipsum dolor sit amet, consectetur adipisicing elit.');
$response = $sms->send();
// Get message status
$status = $response->status;
// Get message SID
$messageSid = $response->sid;
use Oml\PHPAPIService\Messente\SMS;
git clone [email protected]:oromedialab/php-api-service.git