定制 shutterstock/customerio-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

shutterstock/customerio-client

Composer 安装命令:

composer require shutterstock/customerio-client

包简介

PHP Client for Server-Side Customer.io Communication

README 文档

README

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

More information: customer.io rest documentation

Installation

Use composer.

Usage

Make sure that you use autoloader and the proper namespace.

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.

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

Then just use it. Here is a list of the four main things you can do.

$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.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 32
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固