Interspire API Intergration Made Easy

dev-master 2014-10-23 13:26 UTC

This package is auto-updated.

Last update: 2024-05-23 02:25:17 UTC


68747470733a2f2f7472617669732d63692e6f72672f61676c6970616e63692f6c61726176656c2d696e74657273706972652e7376673f6272616e63683d6d6173746572 SensioLabsInsight

Interspire API Intergration Made Easy


Add laravel-interspire to your composer.json file:

"require": {
  "aglipanci/interspire": "dev-master"

Use composer to install this package.

$ composer update

Registering the Package

Register the service provider within the providers array found in app/config/app.php:

'providers' => array(
	// ...

Add an alias within the aliases array found in app/config/app.php:

'aliases' => array(
	// ...
	'Interspire'     => 'Aglipanci\Interspire\Facades\Interspire',


Create configuration file for package using artisan command

$ php artisan config:publish aglipanci/interspire

And edit the config file with your Interspire API URL, Username and Token.


Basic usage

To add a new Subscriber to a list you should add name, surname, email and the list id (which you get from interspire);

Interspire::addSubscriberToList('John', 'Smith', '', 1);

To delete an existing Subscriber you need only the email address:


To check if a subscriber is already on a specific list:

Interspire::isOnList('', 2)