[php]
<?php
// Connect to the Infusionsoft API
require("isdk.php");
$app = new iSDK;
$app->cfgCon("sandbox");
// Notice the names in red match up to the names sent in the http post snippet
$contactId = $_POST[‘contactId’];
$repId = $_POST[‘repId’];
// API call -> update contact record for $ContactId with the information in $rep
$rep = array(‘OwnerID’ => $repId);
$owner = $app->dsUpdate("Contact", $contactId, $rep);
[/php]
Leave a Reply