Download the PHP package ardakilic/euromessage-php without Composer
On this page you can find all versions of the php package ardakilic/euromessage-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package euromessage-php
Euromessage-PHP
This PHP library helps you to create member data, add them to specific lists or delete them, and update preferences of members on Euromessage.
This client uses the Euromessage's REST API, and you can set the endpoints if you want from configuration.
Requirements
- Not an ancient PHP version (>=5.5.0)
- ext-json
Installation
You can simply install via composer package manager:
Example Configuration
Please refer to config.example.php.
The configuration parameter holds the endpoints
section, because during my integration, the company provided me a different api endpoint (base_uri).
Examples
Creating (and Updating) a member
a) From Member Service
b) From Data Warehouse Service
Adding a member to list(s)
Removing a member from list(s)
Update Notification Preferences of a Member
This method sets the member's preferences on his/her demographic data, so this applies to all lists, according to Euromessage's documentation.
a) From Member Service
b) From Data Warehouse Service
Notice: If you have members both in Data Warehouse and Member Service, as support department confirmed, you need to run updateNotificationPreferencesAtDataWarehouse
method. It will find and update the data both in data warehouse and the members created over default Member Service.
Querying member's Demographic Data
a) From Member Service
b) From Data Warehouse Service
Setting a Whole New Configuration on Runtime
Setting Some New Configuration Values on Runtime
TODOs
There's not much stuff required for my personal needs, however, any pull requests will be considered and appreciated.
Changelog
0.1.2
setConfig
andaddConfig
methods now re-initialize the HTTP Client ifendpoints.base_uri
parameter is provided.
0.1.1
setConfig
andaddConfig
methods added to change configuration on runtime, which can also be chained.
0.1.0
- Adding members to Data Warehouse method added.
- Querying Member ID and Demography methods added from both Member Service and Data Warehouse.
forceUpdate
parameter removed fromupdateNotificationPreferences
method.
The endpoints section at configuration parameter now holds new lines, please update accordingly.
0.0.1
- Initial Release.
License
MIT