2014-10-03 63 views
0

我正在嘗試在創建聯繫人之前檢查聯繫人是否已存在。PODIO PHP API,現有聯繫人未返回

下面

是我的代碼的樣品,

$contact_fields_index = array("name"=>"Paul Pierre", "mail"=>"[email protected]"); 
$existingContacts = PodioContact::get_for_app($PODIO_APPID , $contact_fields_index); 

$existingContacts總是空的,即使接觸在工作區中的存在。

我在做什麼錯?

+0

當您使用一般的「獲取聯繫人」操作而不是限制到特定應用程序的操作時會發生什麼?詳情:https://developers.podio.com/doc/contacts/get-contacts-22400 – 2014-10-07 04:04:31

回答

0

我懷疑你的郵件可能不匹配,或者你的名字。 你嘗試沒有屬性參數?例如:

$existingContacts = PodioContact::get_for_app($PODIO_APPID); 

這應該帶回所有的聯繫人和輸出時的$ existingContacts陣列,你可以看到,如果你正在尋找一個在那裏。