Skip to content

Instantly share code, notes, and snippets.

@azu
Created May 12, 2010 13:39
Show Gist options
  • Save azu/398599 to your computer and use it in GitHub Desktop.
Save azu/398599 to your computer and use it in GitHub Desktop.
var request = <methodCall>
<methodName>metaWeblog.newPost</methodName>
<params>
<param>
<value>
<string>{this.blogid}</string>
</value>
</param>
<param>
<value>
<string>{this.username}</string>
</value>
</param>
<param>
<value>
<string>{this.password}</string>
</value>
</param>
<param>
<value>
<struct>
<member>
<name>title</name>
<value>
<string>{title}</string>
</value>
</member>
<member>
<name>description</name>
<value>
<string>{desc}</string>
</value>
</member>
<member>
<name>categories</name>
<value>
<array>
<data>
<value>{categories}</value>
</data>
</array>
</value>
</member>
<member>
<name>mt_keywords</name>
<value>
<string>{tags}</string>
</value>
</member>
<member>
<name>mt_allow_comments</name>
<value>
<boolean>1</boolean>
</value>
</member>
<member>
<name>mt_convert_breaks</name>
<value>
<string>0</string>
</value>
</member>
</struct>
</value>
</param>
<param>
<value>
<boolean>1</boolean>
</value>
</param>
</params>
</methodCall>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment