4.1.1 metaWeblog.newPost
When a blog user adds a new post to a blog, the client software will send a metaWeblog.newPost request, as described in [XML-RPC], with a body formatted as XML as follows.
-
<?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>metaWeblog.newPost</methodName> <params> <param> <value> <string>MyBlog</string> </value> </param> <param> <value> <string></string> </value> </param> <param> <value> <string></string> </value> </param> <param> <value> <struct> <member> <name>title</name> <value> <string>My Title</string> </value> </member> <member> <name>description</name> <value> <string>My description</string> </value> </member> <member> <name>categories</name> <value> <array> <data> <value> <string>My Category</string> </value> </data> </array> </value> </member> </struct> </value> </param> <param> <value> <boolean>1</boolean> </value> </param> </params> </methodCall>
The server processes the metaWeblog.newPost method request and returns a response, as described in [XML-RPC], with a body formatted as XML as follows.
-
<?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value>1829</value> </param> </params> </methodResponse>