https://github.com/simpleweb/silverpopphp
PHP API for Silverpop
https://github.com/simpleweb/silverpopphp
Last synced: about 1 year ago
JSON representation
PHP API for Silverpop
- Host: GitHub
- URL: https://github.com/simpleweb/silverpopphp
- Owner: simpleweb
- License: gpl-3.0
- Created: 2011-03-10T18:01:33.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2020-06-24T15:26:21.000Z (almost 6 years ago)
- Last Synced: 2025-04-09T20:15:13.443Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 107 KB
- Stars: 35
- Watchers: 15
- Forks: 48
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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](http://getcomposer.org) . Create a composer.json file in the root folder of you project and paste the code below.
```javascript
{
"require": {
"simpleweb/silverpopphp": "master-dev"
}
}
```
With composer installed, just run `php composer.phar install` or simply
`composer install` if you [did a global install](http://getcomposer.org/doc/00-intro.md#globally).
## Usage
```php
'XXX',
'password' => 'XXX',
'engage_server' => 4,
));
// Fetch all contact lists
$lists = $silverpop->GetLists(18);
var_dump($lists);
// Add a record to a contact
$recipientID = $silverpop->addContact(
$databaseID,
true,
array(
'name' => 'christos',
'email' => 'chris@simpleweb.co.uk',
)
);
echo $recipientID;
// Create a new mailing and send in 1 minute
$mailingID = $silverpop->sendEmail(
$templateID,
$databaseID,
'API Mailing Test - ' . date("d/m/Y H:i:s", time()),
time() + 60,
);
echo $mailingID;
```