如何使用 joeblogs 或 xmlrpc 添加缩略图图像内容?
添加内容代码:
var post = new Post();
post.DateCreated = DateTime.Today.AddHours(0);
post.Title = textBox1.Text;
post.Body = richTextBox1.Text;
post.Categories = new string[] { secilikat };
var cfs = new CustomField[]
{
new CustomField()
{
// Don't pass in ID. It's auto assigned for new custom fields.
// ID = "name",
Key = "post_thumbnail",
Value = linkToImage
}
};
post.CustomFields = cfs;