title: Insert a draft blog post using Blogger API v3 with Python
body: <p>I am trying to post an article using Blogger Api v3 client library.</p>
  
  <p><a href="https://developers.google.com/blogger/docs/3.0/libraries" rel="nofollow noreferrer">https://developers.google.com/blogger/docs/3.0/libraries</a></p>
  
  <p>I was able to run this sample application to get my blog name and posts.</p>
  
  <p><a href="https://github.com/google/google-api-python-client/tree/master/samples/blogger" rel="nofollow noreferrer">https://github.com/google/google-api-python-client/tree/master/samples/blogger</a></p>
  
  <p>I wrote this code to insert a post as draft, and I was able to create a draft. However, there is no body in it.</p>
  
  <pre><code>from __future__ import print_function
  
  import sys
  
  from oauth2client import client
  from googleapiclient import sample_tools
  
  def main(argv):
      # Authenticate and construct service.
      service, flags = sample_tools.init(
          argv, 'blogger', 'v3', __doc__, __file__,
          scope='https://www.googleapis.com/auth/blogger')
  
      try:
          users = service.users()
  
          # Retrieve this user's profile information
          thisuser = users.get(userId='self').execute()
  
          blogs = service.blogs()
  
          # Retrieve the list of Blogs this user has write privileges on
          thisusersblogs = blogs.listByUser(userId='self').execute()
  
          posts = service.posts()
  
          blog = thisusersblogs['items'][0]
          if blog['id'] == '*** my_blog_id ***':
              posts.insert(blogId=blog['id'], body='test post', isDraft=True).execute()
  
      except client.AccessTokenRefreshError:
          print ('The credentials have been revoked or expired, please re-run'
                 'the application to re-authorize')
  
  if __name__ == '__main__':
      main(sys.argv)
  </code></pre>
  
  <p><strong>Expected Result:</strong> 'test post' in the drat post</p>
  
  <p><strong>Actual Result:</strong> No body in the draft post</p>