silici0 / splio
Splio api access via PHP
Installs: 2 004
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- curl/curl: ^1.8
- hassankhan/config: ^0.11.2
This package is auto-updated.
Last update: 2024-11-27 07:20:41 UTC
README
This library provides an objected-oriented wrapper of a PHP class to access SPLIO REST api
Installation
composer required silici0/splio:dev-master
Configuration
Create a file in your root folder called "config-splio.json" as the follow example code :
{
"universe": "accountname",
"apiKey": "api-key"
}
Usage example
require "vendor/autoload.php";
use silici0\Splio\SplioService;
$s = new SplioService();
/**
* Get Email Lists
*
*/
$r = $s->getLists();
var_dump($r);
/**
* Save New Contact
*
*/
$contactData = array();
$contactData['email'] = 'email@gmail.com';
$contactData['firstname']='Firstname';
$contactData['lastname']='Lastname';
$contactData['lists'][0] = ['id' => '0'];
$r = $v->saveNewContact($contactData);
var_dump($r);