lingualeo/expert-sender-api

Simple API for expert sender service

Installs: 16 510

Dependents: 0

Stars: 6

Watchers: 29

Forks: 4

Open Issues: 2

Language: PHP

0.3.1 2014-04-25 17:47 UTC

README

Simple API for expert sender service

Usage

$expertSender = new ExpertSender('https://api.esv2.com/', $apiKey);

$customProperty = new Property(1775, ExpertSenderEnum::TYPE_STRING, 'female');

$request = new AddUserToList();
$request
    ->setEmail('my@email.com')
    ->setListId(1000)
    ->setFirstName('my name');
    ->addProperty($customProperty)
    ->freeze();

$result = $expertSender->addUserToList($request);

if ($result->isOk()) {
    ...
} else {
    ...
}

Implemented functions

  • addUserToList
  • deleteUser
  • getUserId
  • addTableRow
  • getTableData
  • updateTableRow
  • deleteTableRow
  • changeEmail
  • sendTrigger
  • sendTransactional