2 messages in com.googlegroups.bloggerdev[bloggerDev] Re: Switch user?| From | Sent On | Attachments |
|---|---|---|
| th0nt | 23 Apr 2008 03:03 | |
| Jeff Scudder | 24 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Blogger Data API" group.
To post to this group, send email to blog...@googlegroups.com
To unsubscribe from this group, send email to
blog...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bloggerDev?hl=en
-~----------~----~----~----~------~----~------~--~---




