Newsman PHP API client
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Newsman PHP API Client - version 1.2

This is the Newsman App PHP API client for API version 1.2.

Newsman - Smart Email Service Provider

Newsman is a Smart Email Service Provider. We send newsletters on behalf of our customers.

About Newsman API - version 1.2

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. The API exposes XML RPC and REST interfaces.

This Client offers both options: XML RPC and REST in one single client library. Call type can be set to rpc or rest. Default type is rpc.


The XML RPC call type requires one of the following XML RPC clients installed:

XML RPC call type is recommended.

Example code:

$client = new Newsman_Client($newsman_user_id, $api_key);
$client->setCallType("rpc"); // rpc transport will be detected: zend_xmlrpc_client or xmlrpc_encode


The REST call type is done over HTTP POST and requires one of the following http clients installed:

Example code:

$client = new Newsman_Client($newsman_user_id, $api_key);
$client->setCallType("rest"); // http transport will be detected: zend_http_client or curl

String Encoding

Please make sure all strings are UTF-8 encoded.


More detailed examples can be found here.