exbico / expert-sender-api
Simple API for expert sender service
1.0.0
2020-02-14 06:22 UTC
Requires
- php: >=5.4.0
- psr/log: ~1.0
Requires (Dev)
- phpunit/phpunit: ^4.0
- roave/security-advisories: dev-master
This package is not auto-updated.
Last update: 2024-10-20 05:26:07 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 {
$requestData = $expertSender->getRequestData();
}
Implemented functions
- addUserToList
- deleteUser
- getUserId
- addTableRow
- getTableData
- updateTableRow
- deleteTableRow
- changeEmail
- sendTrigger
- sendTransactional