Wallogit.com
2017 © Pedro Peláez
This library supports most methods of the responsys api. You can: - Create folders - Submit forms - Create new campaigns - Manage data sources, (*1)
This is considered beta state but production ready., (*2)
Installation is done via the wonderful composer package. Once composer is installed, (*3)
composer require mykehsd/responsys
The first step is to initiate your client object with you login information, (*4)
$client = new Client('username', 'password');
#Create folders
$client->createFolder("My New Folder");
#Create Datasource
$client->createDataSource("ds_name", array(
array(
"EMAIL_ADDRESS" => "test@example.com",
)
), 'My New Folder');
#Trigger form submission
$client->submitForm("My API Form", array(
"NAME" => "John Smith",
"EMAIL" => "test@example.com"
));
All methods can be chained together to create a simple interface ``` $client ->createFolder("New Folder" ->submitForm("My API Form", array( "NAME" => "John Smith", "EMAIL" => "test@example.com" ));, (*5)