2017 © Pedro Peláez
 

library laravel-infusionsoft-oauth2

Laravel package to facilitate the use of the Infusionsoft API using OAUTH2

image

djaxho/laravel-infusionsoft-oauth2

Laravel package to facilitate the use of the Infusionsoft API using OAUTH2

  • Monday, July 10, 2017
  • by djaxho
  • Repository
  • 1 Watchers
  • 0 Stars
  • 202 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 201 % Grown

The README.md

laravel-infusionsoft-oauth2

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Laravel package to facilitate the use of the Infusionsoft API using OAUTH2. This packages is quite specific to laravel, (*2)

Install

Via Composer, (*3)

``` bash $ composer require djaxho/laravel-infusionsoft-oauth2, (*4)


## Installation (These instructions are for an 'alerady set-up' laravel project with a functioning database set up) Add the service provider for laravel by adding the following line to your 'providers' array in the file congig/app.php ``` php Djaxho\LaravelInfusionsoftOauth2\LaravelInfusionsoftOauth2ServiceProvider::class,

Publish the package files to your project by running: ``` bash $ php artisan vendor:publish, (*5)

Add the following variable to your .env file or u them in your pdate config/laravel-infusionsoft-oauth2.php file with values obtained from your infusionsoft developer account and for ISDK_API_REDIRECT use the uri you are serving your site from (i.e. www.yoursite.dev)
``` bash
ISDK_API_HOST
ISDK_API_CLIENTID
ISDK_API_CLIENTSECRET
ISDK_API_REDIRECT

Run your database migrations (first make sure you have your database info in your .env file or config files so you can successfully connect to the database of your choosing): ``` bash $ php artisan migrate, (*6)

You may now navigate to your.url/authorize-infusionsoft-api (whichever url you used for ISDK_API_REDIRECT) and click 'authorize.' You will then be taken to infusionsoft to authorize your api connection. At the end of this process you will be led back to the your.url/authorize-infusionsoft-api page with a success message and the oauth2 key stored in your database

## Usage
To start using the infusionsoft api after going through the steps above, add this to the top of your php file:
``` php
use Djaxho\LaravelInfusionsoftOauth2\Infusionsoft;

And in the methods of your classes (or in the constructor method) you can leverage laravel's automatic dependency injection to instantiate the infusionsoft api singleton. As an example of something you could do to test your api connection in a controller class: ``` php, (*7)

protected $infusionsoft;, (*8)

public function __construct(Infusionsoft $infusionsoft) { $this->infusionsoft = $infusionsoft; var_dump($this->infusionsoft->hasToken()); }, (*9)

Then you can use the infusionsoft api documentation to make api calls. As a simple example, you would use it liek this:
``` php
$updateField = $this->infusionsoft->data()->update('Contact', $contactId, $updateData);

Change log

Please see CHANGELOG for more information on what has changed recently., (*10)

Security

If you discover any security related issues, please email djaxho@gmail.com instead of using the issue tracker., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

10/07 2017

dev-master

9999999-dev https://github.com/djaxho/laravel-infusionsoft-oauth2

Laravel package to facilitate the use of the Infusionsoft API using OAUTH2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel oauth2 infusionsoft djaxho laravel-infusionsoft-oauth2

10/07 2017

1.0.0

1.0.0.0 https://github.com/djaxho/laravel-infusionsoft-oauth2

Laravel package to facilitate the use of the Infusionsoft API using OAUTH2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel oauth2 infusionsoft djaxho laravel-infusionsoft-oauth2

07/07 2017

0.1.0

0.1.0.0 https://github.com/djaxho/laravel-infusionsoft-oauth2

Laravel package to facilitate the use of the Infusionsoft API using OAUTH2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel oauth2 infusionsoft djaxho laravel-infusionsoft-oauth2

05/07 2017

0.0.3

0.0.3.0 https://github.com/djaxho/laravel-infusionsoft-oauth2

Laravel package to facilitate the use of the Infusionsoft API using OAUTH2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel oauth2 infusionsoft djaxho laravel-infusionsoft-oauth2

05/07 2017

0.0.2

0.0.2.0 https://github.com/djaxho/laravel-infusionsoft-oauth2

Laravel package to facilitate the use of the Infusionsoft API using OAUTH2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel oauth2 infusionsoft djaxho laravel-infusionsoft-oauth2

05/07 2017

0.0.1

0.0.1.0 https://github.com/djaxho/laravel-infusionsoft-oauth2

Laravel package to facilitate the use of the Infusionsoft API using OAUTH2

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel oauth2 infusionsoft djaxho laravel-infusionsoft-oauth2