post blog using python API

Tom <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Hi Experts,

I find a script to keep update my blog using python API failed with message:

{'status': 401, 'body': 'User does not have permission to create new post', 'reason': 'Unauthorized'}

I am using following code:

  #email = "email--addr--###gmail.com"
  #password =  "PassWord"
  #blog_id = "2711*********08"


  blogger_service = gdata.service.GDataService(email, password)
  blogger_service.source = 'exampleCo-exampleApp-1.0'
  blogger_service.service = 'blogger'
  blogger_service.account_type = 'GOOGLE'
  blogger_service.server = 'www.blogger.com'
  blogger_service.ProgrammaticLogin()

  entry = gdata.GDataEntry()
  entry.title = atom.Title('xhtml', title)
  entry.content = atom.Content(content_type='html', text=blog_content)
  
  return blogger_service.Post(entry, '/feeds/%s/posts/default' % blog_id)

This works for the past several years, but failed from June 22.
What should I do to fix the issue?

Thanks,
Tom

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.