PHP code example of wildsurfer / silex-provider-infusionsoft-sync
1. Go to this page and download the library: Download wildsurfer/silex-provider-infusionsoft-sync 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/ */
wildsurfer / silex-provider-infusionsoft-sync example snippets
php
use Silex\Application;
$key = 'secretkey';
$appName = 'appname';
$apikey = 'rdtdhtdid56urdtdcgfhdrhgf';
$appname = 'test';
$tags = array(1, 2, 3);
$fields = array('FirstName', 'LastName');
$app = new Application();
$app->register(new SyncServiceProvider(), array(
'infusionsoft.apikey' => $apikey,
'infusionsoft.appname' => $appname,
'infusionsoft.tags' => $tags,
'infusionsoft.fields' => $fields
));
$contacts = $app['infusionsoft.sync']->pull();