Support » Plugins » Hacks » Get the last comment .NET CookComputing.XmlRpc

  • Good afternoon!

    Help me please.

    in my .NET C# programm i using CookComputing.XmlRpcV2.dll

    I need to get the last comment in my c# programm
    I did it so:

    WP wp = new WP("url", "login", "password");
    
     Post[] post;
     post = wp.GetRecentPosts(1);
     int idpost = Convert.ToInt16(post[0].postid);
    
     CommentFilter f = new CommentFilter() { offset = 0, post_id = idpost, status = "approve" };
     Comment[] c = wp.GetComments(f);

    It works in wordpress 3.0.1 but in wordpress the last version post selected from the last version a draft copy, accordingly in it there are no comments

  • The topic ‘Get the last comment .NET CookComputing.XmlRpc’ is closed to new replies.