This is the Newsman App PHP API client for API version 1.2.
Newsman is a Smart Email Service Provider. We send newsletters and automate ecommerce on behalf of our customers.
Our current API version is 1.2. API documentation can be found here:
Our API requires an API KEY which you can generate in your Account and your Newsman User id.
Newsman PHP API requires curl
installed:
<?php
$client = new Newsman_Client($newsman_user_id, $api_key);
$ret = $client->list->all();
?>
Please make sure all strings are UTF-8
encoded.
More detailed examples can be found here.
Put a file named composer.json
at the root of your project, containing your project dependencies:
{
"require": {
"newsman/api": "1.0.4"
}
}
Install Composer In Your Project Run this in your command line:
curl -sS https://getcomposer.org/installer | php
Execute this in your project root.
php composer.phar install