Windows Live
MetaWeblogAPI metaWeblog.getPost Method

The metaWeblog.getPost method returns a specific entry from a blog.

Syntax

public struct metaWeblog.getPost(string postid,
string username,
string password);
Parameters

postid [in]

The ID of the post to update.

username [in]

The name of the user’s space.

password [in]

The user’s secret word.

Return Value

struct [out]

A struct that represents the post. Contains the following fields: title, description, postid, dateCreated, categories and publish.

struct { 
    string postid;
    DateTime dateCreated;
    string title;
    string description;
    string[] categories;
    bool publish;
}
Sample XML-RPC Request as XML

<methodCall>
<methodName>metaWeblog.getPost</methodName> 
<params> 
<param> 
<value> 
<string>1829</string> 
</value> 
</param> 
<param> 
<value>!spacename!</value> 
</param> 
<param> 
<value> 
<string>secretword</string> 
</value> 
</param> 
</params> 
</methodCall>
Sample XML-RPC Response as XML

<methodResponse> 
<params>
<param>
<value>
<struct>
<member>
<name>categories</name>
<value>
<array>
<data>
<value>Adventures</value>
</data>
</array>
</value>
</member>
<member>
<name>dateCreated</name>
<value>
<dateTime.iso8601>20030729T10:59:48</dateTime.iso8601>
</value>
</member>
<member>
<name>description</name>
<value>Dr. Quest is missing while on an expedition to find the Yeti. Jonny and his friends head to the Himalayas to find him, but run into another scientist who's determined to bring back the Yeti.
</value>
</member>
<member>
<name>link</name>
<value>http://blogs.law.harvard.edu/lydon/2003/07/18#a187</value>
</member>
<member>
<name>postid</name>
<value>
< string >1829</ string >
</value>
</member>
<member>
<name>title</name>
<value>Expedition To Khumbu</value>
</member>
<member>
<name>publish</name>
<value>
<boolean>1</boolean>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
Page view tracker