4 messages in com.googlegroups.bloggerdevRe: [bloggerDev] Getting list of blogs
FromSent OnAttachments
ra....@genebrew.com22 Dec 2006 10:13 
William Lazar22 Dec 2006 13:40 
deathdruid23 Dec 2006 18:21 
bors...@gmail.com03 Jan 2007 14:09 
Subject:Re: [bloggerDev] Getting list of blogs
From:William Lazar (b.@billsaysthis.com)
Date:12/22/2006 01:40:05 PM
List:com.googlegroups.bloggerdev

I noticed a similar problem using the Ngeblog PHP library after migrating the new Blogger. All of a sudden 302s were being returned and I needed to change the code to follow them, which I realize isn't something you can do with Ecto ;)

Bill

On Dec 22, 2006, at 10:13 AM, ra.@genebrew.com wrote:

I was having an issue with ecto and the new Blogger API, where ecto was authenticating correctly but was not able to retrieve a list of blogs -- there were always zero blogs returned in the list. I actually have two.

So I tried to duplicate the issue using the Java client library, and I still get zero results. What am I doing wrong? Is there some setting that is messed up with my blog? My code is below:

import java.io.IOException; import java.net.URL;

import com.google.gdata.client.GoogleService; import com.google.gdata.data.Feed; import com.google.gdata.util.ServiceException;

public class Opine {

public static void main(String[] args) throws IOException, ServiceException { URL feedUrl = new URL("http://www.blogger.com/feeds/default/blogs");

GoogleService myService = new GoogleService("blogger", "com-genebrew-opine"); myService.setUserCredentials("username", "password");

// Send the request and receive the response: Feed resultFeed = myService.getFeed(feedUrl, Feed.class); System.out.println("Number of results: " + resultFeed.getTotalResults()); }

}

Thanks for the help!