PHP code example of djaxho / laravel-infusionsoft-oauth2

1. Go to this page and download the library: Download djaxho/laravel-infusionsoft-oauth2 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

djaxho / laravel-infusionsoft-oauth2 example snippets

 php
Djaxho\LaravelInfusionsoftOauth2\LaravelInfusionsoftOauth2ServiceProvider::class,
 bash
$ php artisan vendor:publish
 bash
$ php artisan migrate
 php

protected $infusionsoft;

public function __construct(Infusionsoft $infusionsoft)
{
    $this->infusionsoft = $infusionsoft;
    var_dump($this->infusionsoft->hasToken());
}
 php
$updateField = $this->infusionsoft->data()->update('Contact', $contactId, $updateData);