A C# client to interact with the WordPress XML-RPC API
Examples
Create Post
var post = new Post {
PostType = "post",
Title = "My Awesome Post",
Content = "This is the content
",
PublishDateTime = DateTime.Now
}
using (var client = new WordPresClient(new WordPressSiteConfig {
BaseUrl = "http://mywordpress.com",
Username = "admin",
Password = "password",
BlogId = 1
}))
{
var id = Convert.ToInt32(client.NewPost(post));
}
Tutorials
Dependencies
Resources
Notes
Inspired by the POSSIBLE.WordPress.XmlRpcClient by markeverard
Комментариев нет:
Отправить комментарий