PeopleAggregator API: method blogger.deletePost

Arguments | Return value | REST (XML) example | REST (JSON) example | XML-RPC example

Method: blogger.deletePost

(Blogger+metaWeblog API) Deletes a content item. [NOTE: DO NOT USE THE REST FORM OF THIS API CALL; THE BLOGGER API IS XML-RPC ONLY]

Arguments (see also Authentication)

If calling by XML-RPC, note that this method takes 5 arguments, NOT a single struct, like most other methods in this API.

appkey

Type: string
Appkey - not required.
Example: none

postid

Type: string
ID of the post you wish to delete (in the form returned by metaWeblog.newPost).
Example: user:123:456

login

Type: string
User's login name.
Example: testme

password

Type: string
User's password.
Example: testuser123

publish

Type: boolean
true if the deletion should be published immediately, or false if not.
Example: True

Return value (see also Exceptions)

Type: boolean
Always returns true
Example: True

Example REST (XML) request

Request

POST /api/xml/blogger/deletePost HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 82

appkey=none&login=testme&password=testuser123&publish=True&postid=user%3A123%3A456

Response

HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 42

<response>true</response>

Example REST (JSON) request

Request

POST /api/json/blogger/deletePost HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 82

appkey=none&login=testme&password=testuser123&publish=True&postid=user%3A123%3A456

Response

HTTP/1.1 200 OK
Content-Type: application/x-javascript
Content-Length: 4

true

Example XML-RPC call

Request

POST /api/xmlrpc HTTP/1.1
Content-Type: text/xml
Content-Length: 1058

<?xml version='1.0'?>
 <methodCall>
  <methodName>blogger.deletePost</methodName>
  <params>
   <param>
    <value><string>none</string></value>
   </param>
   <param>
    <value><string>user:123:456</string></value>
   </param>
   <param>
    <value><string>testme</string></value>
   </param>
   <param>
    <value><string>testuser123</string></value>
   </param>
   <param>
    <value><boolean>1</boolean></value>
   </param>
  </params>
 </methodCall>
 

Response

HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 329

<?xml version='1.0'?>
 <methodResponse>
  <params>
   <param>
    <value><boolean>1</boolean></value>
   </param>
  </params>
 </methodResponse>