dev-master
9999999-dev https://github.com/aglipanci/laravel-interspireInterspire API Intergration Made Easy
GPL-3.0+
The Requires
- php >=5.3.0
by Agli Panci
laravel interspire
Interspire API Intergration Made Easy
Interspire API Intergration Made Easy, (*2)
Add laravel-interspire to your composer.json file:, (*3)
"require": { "aglipanci/interspire": "dev-master" }
Use composer to install this package., (*4)
$ composer update
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', )
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)
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)
Interspire API Intergration Made Easy
GPL-3.0+
laravel interspire