2017 © Pedro Peláez
 

library infusionsoft

Infusionsoft PHP API - an easy to use version of the PHP Infusionsoft API using GuzzleHTTP.

image

darkgoldblade01/infusionsoft

Infusionsoft PHP API - an easy to use version of the PHP Infusionsoft API using GuzzleHTTP.

  • Thursday, August 24, 2017
  • by darkgoldblade01
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 50 % Grown

The README.md

Infusionsoft PHP SDK

Master Branch, (*1)

Build Status, (*2)

Dev Branch, (*3)

Build Status, (*4)

Infusionsoft PHP API - an easy to use version of the PHP Infusionsoft API using GuzzleHTTP., (*5)

Requirements

PHP 7.0 and later, (*6)

Installation & Usage

Composer

To install the bindings via Composer:, (*7)

composer require darkgoldblade01/infusionsoft

Getting Started

Getting started is easy, you just have to pass the variables required to use the endpoints you want. For instance, the access token is not required if you are using the authorzation endpoints, but everything is required for any other request., (*8)

<?php
$infusionsoft = new darkgoldblade01\Infusionsoft\Infusionsoft([
    'client_id' => '_YOUR_CLIENT_ID_',
    'client_secret' => '_YOUR_CLIENT_SECRET_',
    'redirect_uri' => '_YOUR_REDIRECT_URI_',
    'access_token' => '_YOUR_ACCESS_TOKEN_ARRAY_'
]);

Authroization

Generate the URLs required, along with retreiving access tokens, and refreshing tokens., (*9)

Setup

<?php
$infusionsoft = new darkgoldblade01\Infusionsoft\Infusionsoft([
    'client_id' => '_YOUR_CLIENT_ID_',
    'client_secret' => '_YOUR_CLIENT_SECRET_',
    'redirect_uri' => '_YOUR_REDIRECT_URI_',
]);

Generate Authroization URL

This will return the URL required to authroize a user, and redirect them back to your application, (*10)

$url = $infusionsoft->authorize()->getAuthorizationUrl();

Get Token from Response Code

This will exchange the code variable in the URL on a redirect from Infusionsoft for an access token, verifying it against the client_id, client_secret, and redirect_uri., (*11)

$code = $_GET['code'];
$token = $infusionsoft->authorize()->getToken($code);

Refresh Token

This will refresh the access token you have by sending the refresh code, and getting the response back., (*12)

$refreshedToken = $infusionsoft->authorize()->refreshToken();

Campaigns

Get, update, and delete campaigns., (*13)

Setup

<?php
$infusionsoft = new darkgoldblade01\Infusionsoft\Infusionsoft([
    'client_id' => '_YOUR_CLIENT_ID_',
    'client_secret' => '_YOUR_CLIENT_SECRET_',
    'redirect_uri' => '_YOUR_REDIRECT_URI_',
    'access_token' => '_YOUR_ACCESS_TOKEN_ARRAY_',
]);

List All Campaigns

This will return all of the campaigns in Infusionsoft, results are paginated., (*14)

$campaigns = $infusionsoft->campaigns()->listCampaigns();

Get a Specific Campaign

This will return the campaign you specify by using the ID., (*15)

$campaign = $infusionsoft->campaigns()->getCampaign($campaignId);

Contacts

Get, update, and delete contacts., (*16)

Setup

<?php
$infusionsoft = new darkgoldblade01\Infusionsoft\Infusionsoft([
    'client_id' => '_YOUR_CLIENT_ID_',
    'client_secret' => '_YOUR_CLIENT_SECRET_',
    'redirect_uri' => '_YOUR_REDIRECT_URI_',
    'access_token' => '_YOUR_ACCESS_TOKEN_ARRAY_',
]);

List All Contacts

This will return all of the contacts in Infusionsoft, results are paginated., (*17)

$campaigns = $infusionsoft->contacts()->listContacts();

Get a Specific Campaign

This will return the contact you specify by using the ID., (*18)

$campaign = $infusionsoft->contacts()->getContact($contactId);

The Versions

24/08 2017

dev-dev

dev-dev http://darkgoldblade01.com

Infusionsoft PHP API - an easy to use version of the PHP Infusionsoft API using GuzzleHTTP.

  Sources   Download

The Requires

 

The Development Requires

php sdk infusionsoft

24/08 2017

dev-master

9999999-dev http://darkgoldblade01.com

Infusionsoft PHP API - an easy to use version of the PHP Infusionsoft API using GuzzleHTTP.

  Sources   Download

The Requires

 

The Development Requires

php sdk infusionsoft

24/08 2017

v0.0.3.1

0.0.3.1 http://darkgoldblade01.com

Infusionsoft PHP API - an easy to use version of the PHP Infusionsoft API using GuzzleHTTP.

  Sources   Download

The Requires

 

The Development Requires

php sdk infusionsoft

24/08 2017

v0.0.3

0.0.3.0 http://darkgoldblade01.com

Infusionsoft PHP API - an easy to use version of the PHP Infusionsoft API using GuzzleHTTP.

  Sources   Download

The Requires

 

The Development Requires

php sdk infusionsoft

24/08 2017

v0.0.2

0.0.2.0 http://darkgoldblade01.com

Infusionsoft PHP API - an easy to use version of the PHP Infusionsoft API using GuzzleHTTP.

  Sources   Download

The Requires

 

The Development Requires

php sdk infusionsoft

24/08 2017

v0.0.1

0.0.1.0 http://darkgoldblade01.com

Infusionsoft PHP API - an easy to use version of the PHP Infusionsoft API using GuzzleHTTP.

  Sources   Download

The Requires

 

The Development Requires

php sdk infusionsoft