Six Apart Developer Center

Developer Center Home » XML-RPC » Blogger API »

blogger.newPost

Posted by Byrne Reese on January 16, 2006

Creates a new post on the designated blog. If the “publishPost” parameter is set to true then the post will be published on the weblog as well, otherwise the post will be created and be kept in “draft mode.” If the post is successfully created, the method will return the id of the newly created post. Otherwise, the method will return a fault.

blogger.newPost is different from metaWeblog.newPost in that…

Parameters

  • String appkey
  • String blogid
  • String username
  • String password
  • String content
  • boolean publishPost?

LiveJournal Notes

LiveJournal users should direct their requests to the following URL:

http://www.livejournal.com/interface/blogger

The blogid parameter in this case will be the name of the LiveJournal account of community. For example, for one to post to their own journal the blog id would be the same as the user’s nickname. For one to post to the sfbayarea LiveJournal community, then the user would specify ‘sfbayarea’ as the blogid. It is recommended to use this method in conjunction with the blogger.getUsersBlogs

See also

Sample Request

Sample Response

Perl Code Sample

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.