Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PODIO PHP API,未返回现有联系人_Php_Podio - Fatal编程技术网

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数组时,您可以看到您正在查找的联系人是否在其中。

如果使用常规的获取联系人操作,而不是范围缩小到特定应用程序的操作,会发生什么情况?细节: