添加任务并指定与Infusionsoft PHP API联系

时间:2015-05-04 21:34:38

标签: php api infusionsoft

我使用Infusionsoft的PHP API添加联系人 - https://developer.infusionsoft.com/

此外,我还使用Novak的Infusionsoft这个框架:https://github.com/novaksolutions/infusionsoft-php-sdk

$contact = new Infusionsoft_Contact();

$contact->FirstName = $first_name;
$contact->LastName = $last_name;
$contact_name = $first_name . " " . $last_name;
$contact->Email = $email;

$contact->save();

添加联系人后,我想创建一个任务并将其分配给新创建的联系人和员工。

$task_description = "Call this person asap";
$contact_id = $contact->id;
$employee_id = 2496;

我无法在文档中找到执行此操作的方法。我需要做什么?

1 个答案:

答案 0 :(得分:0)

阅读Infusionsoft开发论坛后,您似乎需要创建一个ContactAction:see thread here

joeynovak提到ContactAction表的字段名称不一定与您认为的字段名称匹配,因此MichaelFairchild在第一个响应中see this thread for a good example of the field names here

仅供参考,in this thread on the Dev forum您将找到表格参考图表的链接,您将在其中看到ContactAction表格。

此外,如果您在尝试创建任务时遇到问题而遇到麻烦,我发现this thread有一个使用iSDK的人的代码示例。