Βιβλιοθήκη PHP

Download our PHP library and build your own custom integration!
Our library contains all needed classes and endpoints to our API.

Usage

Create a singleton object of the main class:

/** @var $etherMailerApi EtherMailerApi */
 $etherMailerApiInstance = EtherMailerApi::instance($ethermailer_api_key);

Here is an example of registering a contact:

$contactRegister = new ContactRegister();
$contactRegister->name = '';
$contactRegister->surname = '';
$contactRegister->email = '[email protected]';

$contactGroups = array();
$contactGroup = new ContactGroupPost();
$contactGroup->groupId = '123456';
$contactGroups[] = $contactGroup;
$contactRegister->groups = $contactGroups;
$contactRegister->senderProfileId = '78901234';
$contactRegister->urlRedirect = 'http://www.website.com/thanks_for_registering.html';
$contactRegister->extraFieldValues = array();

return $ethermailerApiInstance->registerContact($contactRegister);

Download

You may download the PHP library:

Login to download the PHP Library