Sarv Transactional Email API Documentation - PHP
Info! This is Beta version, if you have any problem in using API, please mail us at support@sarv.com
Requirements
PHP 5.2.x or higher
PHP cURL extension
Getting the Library
Installing from the zip release
Download the latest release
Unpack the zip file
Move the files somewhere in your project. In particular you need the SarvMTA_PHP directory.
Using the Library
Now that you have a copy of the library in your project, you're ready to start using it. All uses of the SarvTES API start by including the library and instantiating the Sarv class.
<?php
require_once 'SarvMTA_PHP/Sarv.php';
$sarv = new Sarv('owner_id', 'token', 'SarvTES_APP_DOMAIN');
?>
After that, you're ready to start making calls.