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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -