2 messages in com.googlegroups.bloggerdev[bloggerDev] Re: Switch user?
FromSent OnAttachments
th0nt23 Apr 2008 03:03 
Jeff Scudder24 Apr 2008 14:55 
Subject:[bloggerDev] Re: Switch user?
From:Jeff Scudder (j.@google.com)
Date:04/24/2008 02:55:37 PM
List:com.googlegroups.bloggerdev

On Apr 23, 3:03 am, th0nt <newt@gmail.com> wrote:

Hello, I'm trying to switch blogger when user press login button. But after user and pass changed, the bloggerFeed is still the same. Can you help me to find out, thx so much

Service service = Program.GService; if (txtUsername.Text != null && txtUsername.Text.Length > 0) { service.setUserCredentials(txtUsername.Text, txtPassword.Text); }

Cursor.Current = Cursors.WaitCursor; AtomFeed bloggerFeed = service.Query(new FeedQuery(Resources.API_BloggerLoginURL));

Hi th0nt,

From your code snippet it looks like you are performing an HTTP GET on API_BloggerLoginURL, which is probably not the address for a blog's Atom feed. Does it work if you request the URL that list's the user's blogs?

"http://www.blogger.com/feeds/default/blogs"

Here is some sample code for Java:

http://code.google.com/apis/blogger/developers_guide_java.html#RetrievingMetafeed

Happy coding,

Jeff