2017 © Pedro Peláez
 

library customerio-client

PHP Client for Server-Side Customer.io Communication

image

shutterstock/customerio-client

PHP Client for Server-Side Customer.io Communication

  • Wednesday, July 8, 2015
  • by jacobemerick
  • Repository
  • 39 Watchers
  • 1 Stars
  • 1,762 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

customerio-client

A lightweight client to deal with the REST endpoints of customer.io (which are write-only)., (*1)

More information: customer.io rest documentation, (*2)

Installation

Use composer., (*3)

Usage

Make sure that you use autoloader and the proper namespace., (*4)

require 'vendor/autoload.php';
use Shutterstock\CustomerIO\Client;

The only parameters to pass in with construct is your site id and secret key. Unless you have global CURL options, than pass that in as an optional third array parameter., (*5)

$client = new Client($site_id, $site_key);

Then just use it. Here is a list of the four main things you can do., (*6)

$client->createCustomer($user_id, $user_email, (optional) $user_attributes);
$client->updateCustomer($user_id, $user_email, (optional) $user_attributes);
$client->deleteCustomer($user_id);
$client->trackEvent($user_id, $event_name, (optional) $data);

These four methods are well documented in the class. Oh, and any failures will throw custom, verbose exceptions, so you may want to wrap any calls., (*7)

The Versions

08/07 2015

dev-ss/master

dev-ss/master

PHP Client for Server-Side Customer.io Communication

  Sources   Download

MIT

The Requires

 

customerio php client

08/07 2015

2.0.0

2.0.0.0

PHP Client for Server-Side Customer.io Communication

  Sources   Download

MIT

The Requires

 

customerio php client

11/09 2014

1.0.0

1.0.0.0

PHP Client for Server-Side Customer.io Communication

  Sources   Download

The Requires