2017 © Pedro Peláez
 

project triggmine-sdk-php

PHP SDK library for TriggMine API

image

triggmine/triggmine-sdk-php

PHP SDK library for TriggMine API

  • Monday, December 11, 2017
  • by PauleHan
  • Repository
  • 3 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

TriggMine-SDK-PHP

Description

TriggMine is an automated email marketing platform, tailored to the eCommerce needs. We've harnessed the power of behavioral-based email workflows! In real time, our system automatically tracks customers behavior and separates them into highly relevant, behavior-focused segments and sends them highly personalized emails., (*1)

It takes less than 30 minutes to launch fully automated email campaign! Now marketers can finally watch your email open rates, clicks and sales sky rocket, without hiring tech experts or touching a single line of code!, (*2)

TriggMine web site: http://www.triggmine.com/, (*3)

Composer

To install TriggMine SDK via Composer, run the following command:, (*4)

$ composer require triggmine/triggmine-sdk-php, (*5)

How-to

TriggMine API сan take 9 types of events. All events models send through SendEvent method., (*6)

Event list with model type

Event type Model
Registration ProspectEvent
Cart CartEvent
Order History OrderHistoryEvent
Customer History CustomerHistoryEvent
Login LoginEvent
Logout LogoutEvent
Navigation NavigationEvent
Order OrderEvent
Diagnostic PluginDiagnosticEvent

Example

require 'vendor/autoload.php';

use TriggMineSDK\Models\ProspectEvent;
use TriggMineSDK\Events\TriggMineApi;

//Instance TriggMine API with your ApiKey and ApiUrl
//Your ApiKey && ApiUrl > https://client.triggmine.com.ua/login > Settings > Integration 
$client = new TriggMineApi( 'YOUR API URL', 'YOUR API KEY' );

//Registration event example
$dataCustomer = new ProspectEvent;
$dataCustomer->device_id             = "4c3d48512d48b2603092b5a45ba74c8c";
$dataCustomer->device_id_1           = "465060737";
$dataCustomer->customer_id           = 567;
$dataCustomer->customer_first_name   = "John";
$dataCustomer->customer_last_name    = "Doe";
$dataCustomer->customer_email        = "johndoe@triggmine.com";
$dataCustomer->customer_date_created = "2017-06-08";

$response = $client->SendEvent( $dataCustomer );

Models fields description

Field Description
device_id Device hash generated by FingerprintJS*
device_id_1 Device hash generated by ClientJS*
customer_id Customer Id*
customer_first_name Customer Name
customer_last_name Customer Last Name
customer_email Customer Email
customer_date_created Customer Registration Date
order_id Order Id
order_status Order status (Pending, Paid, Closed etc)
price_total Total amount of order
product_categories Item categories
product_desc Item description
product_id Item ID
product_image Item full path image
product_name Item name
product_price Item price
product_qty Item quantity
product_sku Item vendor code| 
product_total Item summary price
product_url Item full path url
qty_total Order quantity
user_agent User-Agent header. Optional parameter

For more detailed documentation see: https://triggmine-php-sdk-triggmine.c9users.io/triggminesdk/docs/, (*7)

Device hash ClientJS*, FingerprintJS* - We recommend to use ClientJS and FingerprintJS library for definition unique hash of client device and software. It's need for identify client without his loging., (*8)

Customer Id* - Unique Id of a Customer in your DB., (*9)

The Versions

11/12 2017

dev-master

9999999-dev

PHP SDK library for TriggMine API

  Sources   Download

MIT Apache-2.0

The Requires

 

The Development Requires

composer sdk package triggmine

11/12 2017

3.0.23

3.0.23.0

PHP SDK library for TriggMine API

  Sources   Download

MIT

The Requires

 

The Development Requires

composer package triggmine

26/04 2017

3.0.15

3.0.15.0

PHP SDK library for TriggMine API

  Sources   Download

MIT

The Requires

 

The Development Requires

composer package triggmine

21/04 2017

3.0.14.2

3.0.14.2

PHP SDK library for TriggMine API

  Sources   Download

MIT

The Requires

 

The Development Requires

composer package triggmine

13/04 2017

3.0.14

3.0.14.0

PHP SDK library for TriggMine API

  Sources   Download

MIT

The Requires

 

The Development Requires

composer package triggmine

13/04 2017

dev-old

dev-old http://triggmine.com

TriggMine SDK for PHP - Use TriggMine Services in your PHP project

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

sdk triggmine

13/04 2017

dev-dev

dev-dev

PHP SDK library for TriggMine API

  Sources   Download

MIT Apache-2.0

The Requires

 

The Development Requires

composer sdk package triggmine