Skip to content

Seekube/php-customerio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-customerio

PHP API Integration with Customer.io

"Good enough!"

Build Status

Usage

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

$response = $api->createCustomer(
    'someid001',
    '[email protected]',
    array('arbitrary-data' => 'foobarbaz')
);

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

API Methods

Create Customer:

createCustomer('someid001', '[email protected]', array('arbitrary-data' => 'foobarbaz'));

Update Customer:

updateCustomer('someid001', '[email protected]', array('arbitrary-data' => 'foobarbaz'));

Delete Customer:

deleteCustomer('someid001');

Fire Event:

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

Response Object

All methods return a Response object which contains the following methods:

success() // Boolean

message() // String

About

PHP API Integration with Customer.io

Resources

License

Stars

Watchers

Forks

Packages

No packages published