2017 © Pedro Peláez
 

library customerio

PHP API for Customer.io

image

userscape/customerio

PHP API for Customer.io

  • Monday, April 3, 2017
  • by fideloper
  • Repository
  • 9 Watchers
  • 27 Stars
  • 115,876 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 12 Forks
  • 1 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

php-customerio

PHP API Integration with Customer.io, (*1)

"Good enough!", (*2)

Build Status, (*3)

Usage

$api = new Customerio\Api($siteId, $apiSecret, new Customerio\Request);

$response = $api->createCustomer(
    'someid001',
    'some@email.com',
    array('arbitrary-data' => 'foobarbaz')
);

if ($response->success()) {
    // Continue on with life
} else {
    // Learn from your mistakes
    echo $response->message();
}

API Methods

Create Customer:, (*4)

createCustomer('someid001', 'some@email.com', array('arbitrary-data' => 'foobarbaz'));

Update Customer:, (*5)

updateCustomer('someid001', 'some@email.com', array('arbitrary-data' => 'foobarbaz'));

Delete Customer:, (*6)

deleteCustomer('someid001');

Fire Event:, (*7)

fireEvent('someid001', 'event-name', array('arbitrary-value' => 3.14));

Fire Historical Event:, (*8)

fireEvent('someid001', 'event-name', array('arbitrary-value' => 3.14), 1420070400);

Fire Anonymous Event: (http://customer.io/docs/invitation-emails.html), (*9)

fireAnonymousEvent('event-name', array('arbitrary-value' => 3.14));

Record Pageview:, (*10)

recordPageview('someid001', 'https://www.full-pageview-url.com/', 'https://www.optional-full-referrer-url.com/');

Response Object

All methods return a Response object which contains the following methods:, (*11)

success() // Boolean

message() // String

The Versions

03/04 2017

dev-master

9999999-dev

PHP API for Customer.io

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar fideloper

customer.io customerio php customer.io php customerio

03/04 2017

2.1.0

2.1.0.0

PHP API for Customer.io

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar fideloper

customer.io customerio php customer.io php customerio

15/02 2017

2.0.0

2.0.0.0

PHP API for Customer.io

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar fideloper

customer.io customerio php customer.io php customerio

27/09 2016

1.0.4

1.0.4.0

PHP API for Customer.io

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar fideloper

customer.io customerio php customer.io php customerio

11/02 2015

1.0.3

1.0.3.0

PHP API for Customer.io

  Sources   Download

MIT

The Requires

 

by Avatar fideloper

customer.io customerio php customer.io php customerio

28/03 2014

1.0.2

1.0.2.0

PHP API for Customer.io

  Sources   Download

MIT

The Requires

 

by Chris Fidao

customer.io customerio php customer.io php customerio

28/03 2014

1.0.1

1.0.1.0

PHP API for Customer.io

  Sources   Download

MIT

The Requires

 

by Chris Fidao

customer.io customerio php customer.io php customerio

28/03 2014

1.0.0

1.0.0.0

PHP API for Customer.io

  Sources   Download

MIT

The Requires

 

by Chris Fidao

customer.io customerio php customer.io php customerio