PHP code example of zetta-code / zenvia
1. Go to this page and download the library: Download zetta-code/zenvia 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/ */
zetta-code / zenvia example snippets
$sms = new \Zetta\Zenvia\Zenvia('account', 'password', 'https://api-rest.zenvia.com');
$messages = new \Zetta\Zenvia\Model\Sms('5500999999999', 'Test message', '1', 'Sender', new \DateTime());
$response = $sms->send($messages);
echo $response->getStatusDescription();