dev-master
9999999-dev https://github.com/pix-art/addemarPHP Library to easy talk to the Addemar API
MIT
The Requires
- php >=5.3.2
The Development Requires
mailing addemar pix-art
PHP Library to easy talk to the Addemar API
Fully rewritten this old stuff. Is now unittested and contains 3 managers so far., (*1)
ContactManager SendingManager ContactGroupsManager
All correspond with the structure of the addemar documentation here: https://ws-email.addemar.com/docs/current/, (*2)
Settings are needed to connect to the client. In the constructor you can set your Token. Other parameters are pre-defined but can be updated., (*3)
class Settings { private $token; private $version = 1.4; private $wsdl = 'https://ws-email.addemar.com/soap/wsdl/'; private $options = array(); ... }
Connection is an extension from the standard SoapClient. You don't need to know much about this component. Just pass your settings and this will give you a working connection., (*4)
Managers are just grouping names for functions of a specific catergory. Each manager is contains function that you'll be able to find in the documentation from addemar. You can load a manager by calling the Factory., (*5)
Example, (*6)
use Addemar\Factory\ManagerFactory; use Addemar\Client\Connection; use Addemar\Configuration\Settings; $connection = new Connection(new Settings('Your Token')); ManagerFactory::create($connection, 'Addemar\Manager\ContactGroupsManager');
List of Functions:, (*7)
Get structure from contact, (*8)
return: structure ContactData, (*9)
Create a new contact, (*10)
return: integer (contact id), (*11)
Get list of contact ids, (*12)
return: integer array (contact id's), (*13)
Get data from contact specified by the contact id, (*14)
return: structure ContactData, (*15)
Get list of field ids, (*16)
return: array (field id's), (*17)
Update contact, (*18)
return: boolean (true=successful, false=unsuccessful), (*19)
Remove/delete contact specified by the contact id, (*20)
return: boolean (true=successful, false=unsuccessful), (*21)
Subscribe contact specified by the contact id, (*22)
return: boolean (true=successful, false=unsuccessful), (*23)
List of Functions:, (*24)
Get list of mailgroup ids, (*25)
return: array (mailgroup id's), (*26)
List of Functions:, (*27)
Send triggered item (Campaign Item exists), (*28)
object $senditem: instance of Addemar\Model\SendItem, (*29)
return: integer (eid), (*30)
PHP Library to easy talk to the Addemar API
MIT
mailing addemar pix-art