Search This Site

Custom Search

Friday, October 1, 2010

[bloggerDev] How to query blogs without blogid?

I would like to execute read-only text queries against the
BloggerService but I get errors unless I pass blogid. Is there a way
to execute read-only queries without blogId ?

Also, i'm not sure what URL to use even if this is possible, all of
the examples pass blogid in the URL.

Any help is appreciated; sample code would be great if someone knows
how to do this.

The code I'm currently using is:

// Is this URL correct?
URL feedUrl = new URL("http://www.blogger.com/feeds/posts/
default");

Query query = new Query(feedUrl);
query.setFullTextQuery(textQuery);

BloggerService bservice = new BloggerService("myapplication");
Feed resultFeed = bservice.query(query, Feed.class);


Thanks
Bill

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

No comments:

Post a Comment