simpleweb/SilverpopPHP

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

Homepage:

Size: 127

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Silverpop PHP Client Library

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

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.

Usage
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;

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.