/** * Executes a query on the Snippets Feed. No authentication is required * since the Snippets Feed is public information. * * @return void */ function querySnippetFeed() { echo "<h2>Execute a query on the snippets feed</h2>\n"; $service = new Zend_Gdata_Gbase(); $query = $service->newSnippetQuery(); $query->setBq('[title:Programming]'); $query->setOrderBy('modification_time'); $query->setSortOrder('descending'); $query->setMaxResults('5'); $query->setCategory('jobs'); $feed = $service->getGbaseSnippetFeed($query); printEntries($feed); }