我已经集成了podio用户身份验证,现在我必须找到用户可以访问的工作空间。 有功能吗?
使用PodioUserStatus :: get()我只能检索与用户相关的部分信息,而不能检索他有权访问的工作区。
答案 0 :(得分:1)
您可以使用此处描述的$names = [];
foreach ($MainArray as $aIndex => $aPayload) // loop over the key and values of the first array
{
foreach ($searchArray as $b) // loop over your search array (we don't care about the indicies)
{
if ($aIndex == $b) // match up the index of the first array with the values of the second array
{
$names[] = $b['first_name'];// append the name to the return array
break; // since we've found the index break out of the inner loop
}
}
}
方法:https://developers.podio.com/doc/organizations/get-organizations-22344