amritgc/userengage-php

dev-master 2018-05-11 12:41 UTC

This package is not auto-updated.

Last update: 2024-11-21 18:10:55 UTC


README

Usage

$userEngage = new \Gc\UserEngage\UserEngage('API_KEY');

Create User

$userEngage->user()->create([
  "first_name": "Amrit",
  "last_name": "G.C"
  "email": "myemail@example.org",
]);

Find User Detail

$userEngage->user()->findByEmail('mytestemail@gmail.com');
$userEngage->user()->findByKey('7Q2VclcuKp7o');
$userEngage->user()->findById('123');
$userEngage->user()->findByPhoneNumber('9847463745');

Delete User Detail

$userEngage->user()->delete($userId);