本文整理汇总了PHP中Zend_Gdata::retrieveAllEntriesForFeed方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Gdata::retrieveAllEntriesForFeed方法的具体用法?PHP Zend_Gdata::retrieveAllEntriesForFeed怎么用?PHP Zend_Gdata::retrieveAllEntriesForFeed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Gdata
的用法示例。
在下文中一共展示了Zend_Gdata::retrieveAllEntriesForFeed方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GoogleGroupsAll
function GoogleGroupsAll($GoogleContactsClient, $GoogleContactsEmail)
{
$scope = "http://www.google.com/m8/feeds/groups/" . $GoogleContactsEmail . "/";
$gdata = new Zend_Gdata($GoogleContactsClient);
$query = new Zend_Gdata_Query($scope . 'full');
$query->setMaxResults(10000);
$feed = $gdata->retrieveAllEntriesForFeed($gdata->getFeed($query));
foreach ($feed as $entry) {
$arrGroupsData['groupName'] = $entry->title->text;
$arrIdExplode = explode("/", $entry->id->text);
$arrGroupsData['groupId'] = $arrIdExplode[count($arrIdExplode) - 1];
$GroupHref = $entry->link[1];
if ($GroupHref->rootElement == "link") {
$arrHrefExplode = explode("/", $GroupHref->href);
$arrGroupsData['groupHref'] = $arrHrefExplode[count($arrHrefExplode) - 1];
}
$arrGroups[] = $arrGroupsData;
}
return $arrGroups;
}
示例2: GoogleContactPhoto
function GoogleContactPhoto($GoogleContactsClient, $ContactEmail)
{
$lnkPhotoGet = 'http://google.com/m8/feeds/photos/media/';
$gdata = new Zend_Gdata($GoogleContactsClient);
$query = new Zend_Gdata_Query($lnkPhotoGet . $ContactEmail . '/c9012de');
$query->setMaxResults(10000);
$feed = $gdata->retrieveAllEntriesForFeed($gdata->getFeed($query));
}