Post into wordpress blog via C# & WordPressSharp -
Post into wordpress blog via C# & WordPressSharp -
i'm using wordpresssharp , trying add together content wordpress blog.
i'm having problem adding content.
helper.wordpressconfigurations.posttowordpress(1, "testing", "content description");
here post method
public static post setpost(int posttype, string title, string content) { string type = posttype == 1 ? "post" : "page"; int categoryid = 0; switch ("".tolowerinvariant()) { case "arrow": categoryid = 4; break; default: categoryid = 0; break; } homecoming new post { posttype = "post", // "post" or "page" title = title, content = content, publishdatetime = datetime.now, status = "publish"//, // "draft" or "publish", //terms = terms }; }
having exception in wordpressclient.cs >
my total code here http://paste.ubuntu.com/10793675/
wordpresssharp depends on xml-rpc.net version 3.0.0, not yet stable version , seems have bugs. seek using version 2.5.0 instead.
download source of wordpresssharp , xml-rcp.net 2.5.0. delete reference assembly of 3.0.0 wordpresssharp project , add together reference 2.5.0 instead.it worked in case, , hope it'll of help you.
c# wordpress xml-rpc wordpresssharp
Comments
Post a Comment