# Creamailer API

A small library for Creamailer REST API

## Usage

```
require "vendor/autoload.php";

use \BewitchingSource\CreamailerAPI\API as CMAPI;

$api = new CMAPI("YOUR ACCESSTOKEN", "YOUR SHARED SECRET");
$lists = $api->Lists->get();
$list = $api->Lists->get("123");
$new_subscriber = $api->Subscribers->post("123", ["json" => ["email" => "foo@bar.qux"]]);
$subscriber = $api->Subscribers->get("123", ["query" => ["email" => "foo@bar.qux"]]);
```
