PODIO PHP API,未返回现有联系人
我试图在创建联系人之前检查它是否已经存在 下面是我的代码示例PODIO PHP API,未返回现有联系人,php,podio,Php,Podio,我试图在创建联系人之前检查它是否已经存在 下面是我的代码示例 $contact_fields_index = array("name"=>"Paul Pierre", "mail"=>"paul@barnardmail.net"); $existingContacts = PodioContact::get_for_app( $PODIO_APPID , $contact_fields_index); $existingContacts始终为空,即使该联系人存在于工作区中 我做错了
$contact_fields_index = array("name"=>"Paul Pierre", "mail"=>"paul@barnardmail.net");
$existingContacts = PodioContact::get_for_app( $PODIO_APPID , $contact_fields_index);
$existingContacts
始终为空,即使该联系人存在于工作区中
我做错了什么?我怀疑您的邮件可能不匹配,或者您的姓名不匹配。 您是否尝试不使用attributes参数?例如:
$existingContacts = PodioContact::get_for_app( $PODIO_APPID );
这将带回所有联系人,当输出$existingContacts数组时,您可以看到您正在查找的联系人是否在其中。如果使用常规的获取联系人操作,而不是范围缩小到特定应用程序的操作,会发生什么情况?细节: