21 messages in com.googlegroups.bloggerdev[bloggerDev] Re: Problem with Non-Gma...| From | Sent On | Attachments |
|---|---|---|
| Cory W | 01 May 2008 13:11 | |
| Cory W | 01 May 2008 14:13 | |
| Jeff Scudder | 02 May 2008 09:42 | |
| Cory W | 05 May 2008 09:27 | |
| Jeff Scudder | 08 May 2008 10:34 | |
| Cory W | 12 May 2008 12:54 | |
| Jeff Scudder | 13 May 2008 14:06 | |
| Cory W | 14 May 2008 13:04 | |
| Cory W | 15 May 2008 13:43 | |
| Jeff Scudder | 15 May 2008 16:42 | |
| IC | 07 Jul 2008 22:51 | |
| serg...@gmail.com | 09 Jul 2008 15:15 | |
| Trevor Johns | 11 Jul 2008 01:38 | |
| Trevor Johns | 11 Jul 2008 01:55 | |
| IC | 13 Jul 2008 00:48 | |
| IC | 13 Jul 2008 00:50 | |
| IC | 15 Jul 2008 00:01 | |
| IC | 15 Jul 2008 02:30 | |
| Trevor Johns | 15 Jul 2008 15:21 | |
| IC | 16 Jul 2008 23:29 | |
| jottos | 07 Sep 2008 21:39 |
| Subject: | [bloggerDev] Re: Problem with Non-Gmail Google Accounts![]() |
|---|---|
| From: | Jeff Scudder (j....@google.com) |
| Date: | 05/02/2008 09:42:54 AM |
| List: | com.googlegroups.bloggerdev |
On May 1, 2:13 pm, Cory W <cory...@gmail.com> wrote:
One correction:
The Python get_blogger_service() function actually returns the GDataService object:
def get_blogger_service(username, password): blogger = service.GDataService(username, password) blogger.source = 'My Source' blogger.service = 'blogger' blogger.server = 'www.blogger.com' blogger.ProgrammaticLogin() return blogger
Thanks,
Cory
On May 1, 3:11 pm, Cory W <cory...@gmail.com> wrote:
Hi,
I am unable to get non-gmail.com Google accounts to authenticate against the Blogger API.
I have two accounts (examples used here):
Both are valid Google accounts, and both have access to my blog. I can login with each using the Blogger web interface, and publish posts. I can also use other Google services with each account, such as Google Reader. No problems, and authentication works perfectly.
However, Blogger fails to authenticate the exam...@example.com account when I use the Blogger Data API (Python). Here is my authentication function:
def get_blogger_service(username, password): blogger = service.GDataService(username, password) blogger.source = 'My Source' blogger.service = 'blogger' blogger.server = 'www.blogger.com' blogger.ProgrammaticLogin()
When I call this function with my gmail.com account, everything works properly:
>>> blogger = get_blogger_service('exam...@gmail.com','mypassword')
But when I use my non-gmail.com Google account, I get a gdata.service.BadAuthentication exception:
Hi Cory,
Does this non-gmail account happen to belong to a Google Apps domain? If so, you might try adding the following to get_blogger_service:
blogger.account_type = 'GOOGLE'
Please let me know if this helps.
Cheers,
Jeff
>>> blogger = get_blogger_service('exam...@example.com','mypassword') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 6, in get_blogger_service File "build/bdist.linux-i686/egg/gdata/service.py", line 318, in ProgrammaticLogin gdata.service.BadAuthentication: Incorrect username or password
I am certain that the username and password are correct, as I mentioned, I can login to the Blogger web interface with them and post articles. I've tried this multiple times, with multiple accounts and I see the same result over and over. I also looked for a preference setting in my Blogger account in case external authentication needed to be manually enabled, but I found nothing.
This seems to be a problem with the API. Is there something I am missing here, or is this a bug? Are there any workarounds? I really need to get this to work.
Thanks for your help,
Cory
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---




