PHP code example of woodynadobhar / infusionsoft

1. Go to this page and download the library: Download woodynadobhar/infusionsoft 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/ */

    

woodynadobhar / infusionsoft example snippets


Route::get('/infusionsoft-test', function()
{
	$sdk = Infusionsoft::sdk();
	$contactId = 12345;
	$result = $sdk->loadCon($contactId, array('FirstName','LastName','Email'));
	
	dd($result);
});

Route::get('/infusionsoft-test', function()
{	
	$sdk = Infusionsoft::sdk();
	$contactId = 12345;
	$args = array( $contactId, array('FirstName','LastName','Email') );
	$result = Infusionsoft::execWithLog( $sdk, 'loadCon', $args );
	dd($result);
});