This PHP wrapper wraps around Flexmail's SOAP/WSDL API.
Our wrapper handles the API connection & specific API calls as simple functions. By "wrapper", we mean a chunk of code that you can download, drop into your project and work with quickly. It will handle the details of the actual network connections, parameters, and interface for you so that you can focus on just using the object(s) we expose to integrate Flexmail into your code.
You are not required to use these files in order to use the Flexmail API. You can of course build your own or use Flexmails SOAP/WSDL API.
PHP's SOAP extension: http://www.php.net/manual/en/book.soap.php
Update the config.php file replacing the required information: USER_ID and USER_TOKEN with your personal Flexmail User Id and User Token, which can be found within the Flexmail platform. Browse to Home > Profile to view your User ID and User Token. Within your existing PHP code require the Flexmail API wrapper
<?php require_once "FlexmailAPI.php"; ?>
To call a service on an object: Request the instance, execute the function.
Required parameters can be found within the FlexmailAPI_Class files themselves or on: https://soap.flexmail.eu/documentation/
<?php
$contact = new stdClass;
$contact->emailAddress = "john.doe@example.com";
$contact->name = "John";
$contact->surname = "Doe";
$response = FlexmailAPI::service("Contact")->create(array(
"mailingListId" => 10000,
"emailAddressType" => $contact
));
?>
FlexmailAPI_Account | FlexmailAPI_Blaclist | FlexmailAPI_Campaign |
getBounces getSubscriptions getUnsubscriptions getProfileUpdates getBalance |
import | create update delete getAll sendTest send history reportv getSummary getTrackingLinks getTrackingLinkHits |
FlexmailAPI_Category | FlexmailAPI_Contact | FlexmailAPI_File |
create update delete getAll |
create update delete getAll import history |
put |
FlexmailAPI_Form | FlexmailAPI_Group | FlexmailAPI_LandingPage |
getAll getResults |
create update delete getAll createSubscription deleteSubscription |
create update delete getAll |
FlexmailAPI_List | FlexmailAPI_Message | FlexmailAPI_Template |
create update delete getAll |
create update delete getAll |
create update delete getAll |