Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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));
 }