2017 © Pedro Peláez
 

library interspire

Interspire API Intergration Made Easy

image

aglipanci/interspire

Interspire API Intergration Made Easy

  • Thursday, October 23, 2014
  • by aglipanci
  • Repository
  • 2 Watchers
  • 2 Stars
  • 195 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

laravel-interspire

SensioLabsInsight, (*1)

Interspire API Intergration Made Easy, (*2)

Installation

Add laravel-interspire to your composer.json file:, (*3)

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

Use composer to install this package., (*4)

$ composer update

Registering the Package

Register the service provider within the providers array found in app/config/app.php:, (*5)

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

    'Aglipanci\Interspire\InterspireServiceProvider',
)

Add an alias within the aliases array found in app/config/app.php:, (*6)

'aliases' => array(
    // ...

    'Interspire'     => 'Aglipanci\Interspire\Facades\Interspire',
)

Configuration

Create configuration file for package using artisan command, (*7)

$ php artisan config:publish aglipanci/interspire

And edit the config file with your Interspire API URL, Username and Token., (*8)

Usage

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);, (*9)

Interspire::addSubscriberToList('John', 'Smith', 'jsmith@gmail.com', 1);

To delete an existing Subscriber you need only the email address:, (*10)

Interspire::deleteSubscriber('jsmith@gmail.com');

To check if a subscriber is already on a specific list:, (*11)

Interspire::isOnList('jsmith@gmail.com', 2)

The Versions

23/10 2014

dev-master

9999999-dev https://github.com/aglipanci/laravel-interspire

Interspire API Intergration Made Easy

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.3.0

 

laravel interspire