6 messages in com.googlegroups.bloggerdevRe: Problem with API when looking for...| Subject: | Re: Problem with API when looking for other blog not mine![]() |
|---|---|
| From: | Jeff Scudder (j....@google.com) |
| Date: | 10/11/2007 03:41:38 PM |
| List: | com.googlegroups.bloggerdev |
On Oct 10, 3:15 am, gioMax <gio...@gmail.com> wrote:
Hi at all,
I developing an application to make some studies on blog, I read all
the material about your blogger API and I start to develop an
application that collect a set of user Id (that I find looking
forwww.blogger.com/profile/userId), and from this number start looking
for blogID. Following the instructions I write the java code:
try {
String METAFEED_URL = "http://www.blogger.com/
feeds/"+profileID+"/blogs";
final URL feedUrl = new URL(METAFEED_URL);
try{
+Feed resultFeed = myService.getFeed(feedUrl,
Feed.class);
if (resultFeed.getEntries().size() > 0){
Entry entry = resultFeed.getEntries().get(0);
String blogId = entry.getId().split("blog-")[1];
System.out.println("BlogId: "+blogId);
}
}catch (Exception e){
System.out.println("Errore nella gestione dei feed:
"+e.getMessage());
}
} catch (MalformedURLException ex) {
System.out.println("Errore nella ricerca del blog
id");
System.out.println("Eccezione : "+ex.getMessage());
}
This function get an external profileId, so not the mine indicated with "default" and look for blogID referrend to this user. The line of the code signed with "+" lunch an exception that I catch but that doesn't have to apper. This exception apperar every 2 or three profileID and is an "Internal Server Error" that google sent to me. If I look in my browser for that code I see that exist so anyone can tell me where is the problem? Is it in the API or in my code (that is copyed from the tutorial)?
Cheers Max
The code you posted looks fine. What were some of the profile IDs that failed?
Thank you,
Jeff




