引用 CookComputing.XmlRpc
直接上代码
using CookComputing.XmlRpc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class APi
{
/// <summary>
/// 发布新文章
/// </summary>
[XmlRpcMissingMapping(MappingAction.Ignore)]
public struct NewPost
{
public DateTime dateCreated;//发布时间
public string description;//文章正文内容
public string title;//标题
public string[] categories;//分组名称
public string mt_keywords;//Tags,也叫标签
}
public class MetaBlogAPI : XmlRpcClientProtocol
{
/// <summary>
/// 发布新文章
/// </summary>
/// <param name="blogid"></param>
/// <param name="username"></param>
/// <param name="password"></param>
/// <param name="content"></param>
///