Name: SilverpopPHP
Owner: Simpleweb
Description: PHP API for Silverpop
Created: 2011-03-10 18:01:33.0
Updated: 2017-12-21 17:34:01.0
Pushed: 2017-12-01 12:56:31.0
Size: 127
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
PHP client library for the Silverpop API.
Note. This project is not actively maintained. I suggest if it is useful, you fork your own version of it.
Pull requests that are non-breaking will be merged.
Installation via composer . Create a composer.json file in the root folder of you project and paste the code below.
"require": {
"simpleweb/silverpopphp": "master-dev"
}
With composer installed, just run php composer.phar install
or simply
composer install
if you did a global install.
p
nclude the library
ire_once 'vendor/autoload.php';
equire the Silverpop Namespace
Silverpop\EngagePod;
et some useful variables
abaseID = 'XXX';
plateID = 'XXX';
tactsList = 'XXX';
nitialize the library
verpop = new EngagePod(array(
sername' => 'XXX',
assword' => 'XXX',
ngage_server' => 4,
etch all contact lists
ts = $silverpop->GetLists(18);
dump($lists);
dd a record to a contact
ipientID = $silverpop->addContact(
atabaseID,
ue,
ray(
'name' => 'christos',
'email' => 'chris@simpleweb.co.uk',
$recipientID;
reate a new mailing and send in 1 minute
lingID = $silverpop->sendEmail(
emplateID,
atabaseID,
PI Mailing Test - ' . date("d/m/Y H:i:s", time()),
me() + 60,
$mailingID;