userscape/customerio 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

userscape/customerio

最新稳定版本:2.1.1

Composer 安装命令:

composer require userscape/customerio

包简介

PHP API for Customer.io

README 文档

README

PHP API Integration with Customer.io

"Good enough!"

Build Status

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:

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

Update Customer:

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

Delete Customer:

deleteCustomer('someid001');

Fire Event:

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

Fire Historical Event:

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

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

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

Record Pageview:

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:

success() // Boolean

message() // String

统计信息

  • 总下载量: 801.73k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 33
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 33
  • Watchers: 7
  • Forks: 15
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-03-28