Download the PHP package wickedreports/old-php-isdk without Composer
On this page you can find all versions of the php package wickedreports/old-php-isdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wickedreports/old-php-isdk
More information about wickedreports/old-php-isdk
Files in wickedreports/old-php-isdk
Package old-php-isdk
Short Description The unofficial Infusionsoft API PHP SDK
License MIT
Informations about the package old-php-isdk
PHP iSDK
Note: This PHP-iSDK is deprecated, and will be removed from Infusionsoft's public github on April, 30 2015. Please use infusionsoft-php instead.
This SDK allows developers to easily use the Infusionsoft API with PHP
Install Instructions
This SDK requires at least PHP 5.2
- Clone the repository to your system
- Copy the "src" folder (or its contents) to the folder that will hold the SDK
Configuration
There are two ways we can connect to the API.
-
First way is to use the src/conn.cfg.php configuration file
A. You will need your Application Name and Your API Key
- http://ug.infusionsoft.com/article/AA-00442/0/How-do-I-enable-the-Infusionsoft-API-and-generate-an-API-Key.html
B. In src/conn.cfg.php file you will need to replace the following:
-
We can pass in the Application Name and API Key directly into the cfgCon function
A. You will need your Application Name and Your API Key
Making Your First API Call
In the script you want to make the API call in you will need to do the following:
- We need to require the iSDK
- Next we need to create an object
- Next we need to create the connection
-
OR
-
- Next we will make our first API call using the ContactService.findByEmail method. This method returns contact information by an email address we send
- Finally we want to print the return information to the browser window
How to Use Logging
As of Version 1.8.3 the iSDK has the ability to log API calls to a CSV. By default logging is disabled.
To enable logging do the following:
- In the script you want to log the API Calls of add this after you create the object
- (Optional) You can set the location of the CSV. By default the csv is created in the same directory as isdk.php
Misc Functions
- infuDate() - formats your date string for use with the API. Has an optional parameter for doing UK date formats.
iSDK
All versions of old-php-isdk with dependencies
ext-curl Version *