docnet/php-emc-client

Email Campaigner API Client in PHP

dev-master 2015-01-23 18:18 UTC

This package is not auto-updated.

Last update: 2024-11-19 16:34:59 UTC


README

This library is intended to make it easy for you to get started with and to use Email Campaigner in your applications.

Basic Examples

I find examples a great way to learn, so here's a couple for you (without the boilerplate)...

// Subscribe some lucky guy to our email list
$obj_client = new \Docnet\EMC\Client(EMC_API_KEY, EMC_API_SECRET);
$obj_client->subscribe('bill@microsoft.com');

Now let's unsubscribe him

// Bill changed his mind...
$obj_client = new \Docnet\EMC\Client(EMC_API_KEY, EMC_API_SECRET);
$obj_client->unsubscribe('bill@microsoft.com');

Install with Composer

To install using composer, use this require line

"docnet/php-emc-client": "dev-master"