Skip to content

Instantly share code, notes, and snippets.

@ksnider
Created December 19, 2013 21:22
Show Gist options
  • Select an option

  • Save ksnider/8046470 to your computer and use it in GitHub Desktop.

Select an option

Save ksnider/8046470 to your computer and use it in GitHub Desktop.
<?php
// Connect to Infusionsoft
require_once("isdk.php");
$app = new iSDK;
$app->cfgCon("connectionName");
// Get ContactID from POST variable
//$contactId = $_POST['contactId'];
$contactId = 18853;
// Use achieveGoal API call to trigger goal in Campaign Builder
$Integration = 'hff89622';
$callName = 'triggerNext';
$goal=$app->achieveGoal($Integration, $callName, $contactId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment