错误:6 - 添加联系人时,infusionsoft iSDK中没有从服务器收到数据

时间:2015-08-28 11:17:20

标签: php infusionsoft

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;
            }
}

1 个答案:

答案 0 :(得分:0)

Sachin,您是否正在检查是否生成了错误?如果抛出错误,您将不会返回任何返回数据,但错误将等待结果faultString()中的查看和结果faultCode()