require_once APPPATH.'third_party/infusionsoft_api/iSDK/src/isdk.php';
class Infusion
{
$app = new iSDK;
if($app->cfgCon("infusionapi",$app_name, $api_key)) {
$conDat = array(
'FirstName' => 'ss',
'LastName' => 'aa',
'Email' => 'sachin.patil@gmail.com',
'StreetAddress1' => '11'
);
$conId = $app->addCon("Contact", $conDat);
echo "sss".$conId;
exit;
}
}
Sachin, are you checking to see if an error was generated? If an error is being thrown, you won't get back any return data but the error will be waiting for review in the result faultString() and result faultCode()