Skip to content

smathews/SilverpopPHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Silverpop PHP Client Library

PHP client library for the Silverpop API

Usage

<?php

// Include the library
require_once 'lib/EngagePod4.php';

$databaseID   = '';
$mailingID    = '';
$contactsList = '';

// Initialize the library
$pod = new EngagePod4(array(
  'username'       => 'XXX',
  'password'       => 'XXX',
  'engage_server'  => 4,
));

// Fetch all contact lists
$lists = $pod->GetLists(18);
var_dump($lists);

// Add a record to a contact
$recipientID = $pod->addContact(
  $databaseID,
  true,
  array(
    'name'  => 'christos',
    'email' => '[email protected]',
  )
);

// Create a new mailing and send in 1 minute
$mailingID = $pod->sendEmail(
  $mailingID,
  $databaseID,
  'API Mailing Test - ' . date("d/m/Y H:i:s", time()),
  time() + 60,
);
var_dump($mailingID);

About

PHP API for Silverpop

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%