query blogger posts with PHP, using search API -


i'm using blogger api (google) try , search strings (i.e.'john doe friend' - , return blog id/url/etc) on public blogs. have found until returns data own account, not public accounts.

here's have now, doesn't output have no blogs set myself. i've tried adding parameters , such narrow down search, feel $query need change bit.

<?php  $user = 'xxxxxx'; $pass = 'xxxxxx';  require_once 'zend/loader.php'; zend_loader::loadclass('zend_gdata'); zend_loader::loadclass('zend_gdata_query'); zend_loader::loadclass('zend_gdata_clientlogin'); zend_loader::loadclass('zend_gdata_feed');  $client = zend_gdata_clientlogin::gethttpclient($user, $pass, 'blogger', null,     zend_gdata_clientlogin::default_source, null, null,     zend_gdata_clientlogin::clientlogin_uri, 'google'); $gdclient = new zend_gdata($client);  function printallblogs(){   $query = new zend_gdata_query('http://www.blogger.com/feeds/default/blogs');   $feed = $gdclient->getfeed($query);   printfeed($feed); }  function printfeed($feed){   $i = 0;   foreach($feed->entries $entry) {     print $i ." ". $entry->title->text . "\n";     $i++;   } }  ?> 

i figure shouldn't crazy...just haven't found solution yet. thanks!

you you're using blogger api, searching blogs should use blog search api, think.

edit: it's javascript, apparently...


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -