• Resolved seomat

    (@seomat)


    Hello,

    For the first thanks for a great plugin you have made! It is really very modern and usefull.

    I have got a problem adding a ne Story to the Existing one through XML-RPC (https://1dir1.net/doc/wordpress-java/).
    When I add a a Story:
    Post recentPost = new Post();
    recentPost.setPost_type(“wp-story”);
    recentPost.setPost_title(“Title”);
    recentPost.setPost_content(“Content”);
    recentPost.setPost_status(“publish”);
    Every thing adds with no problem.

    Question are:
    1) How to add a new “item” of a Story? I want to add 4-5 items per s Story. But whenever I add it creates a new one with no items.
    2) I have seen in DB that story’s items add this way:
    a:3:{i:0;a:4:{s:4:”text”;s:5:”erger”;s:4:”link”;s:6:”ergerg”;s:3:”src”;s:6:”ergerg”;s:7:”new_tab”;s:0:””;}i:1;a:4:{s:4:”text”;s:7:”ergerge”;s:4:”link”;s:12:”ergergerggeg”;s:3:”src”;s:4:”gerg”;s:7:”new_tab”;s:0:””;}i:2;a:4:{s:4:”text”;s:7:”gergerg”;s:4:”link”;s:5:”erger”;s:3:”src”;s:3:”erg”;s:7:”new_tab”;s:0:””;}}

    When I add a new Item it brokes everything and not shown:
    a:3:

    {
    i:0;a:4:{s:4:”text”;s:5:”ergrrer”;s:4:”link”;s:6:”erfrg”;s:3:”src”;s:6:”errg”;s:7:”new_tab”;s:0:””;}
    i:1;a:4:{s:4:”text”;s:7:”ergerge”;s:4:”link”;s:12:”ereg”;s:3:”src”;s:4:”gerg”;s:7:”new_tab”;s:0:””;}
    i:2;a:4:{s:4:”text”;s:7:”gergerg”;s:4:”link”;s:5:”erger”;s:3:”src”;s:3:”eryg”;s:7:”new_tab”;s:0:””;}
    i:3;a:4:{s:4:”text”;s:7:”gergerg”;s:4:”link”;s:1:”erger”;s:3:”src”;s:3:”eyrg”;s:7:”new_tab”;s:0:””;}

    }

    Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpuzman

    (@wpuzman)

    Hello. Thank you for using our plugin.

    Our plugin uses WordPress Json api. Check story data in yoursite.com/wp-json/wp-story/v1/free and compare with yours.

    Thread Starter seomat

    (@seomat)

    Thank you very much for your answer!
    Now I try to use this java library https://github.com/Afrozaar/wp-api-v2-client-java to update remotely to WP to add a story. Here is my request:

    final Post post = PostBuilder.aPost()
    .withFormat(“wp_story”)
    .withTitle(TitleBuilder.aTitle().withRendered(“Title”).build())
    .withExcerpt(ExcerptBuilder.anExcerpt().withRendered(“Excerpt”).build())
    .build();

    Here is the error:

    Invalid parameter(s): format

    Can you tell me please what kind of format do I have to fill in withFormat(“???”).

    Best regards,

    Plugin Author wpuzman

    (@wpuzman)

    Sory. I am not experienced in java.

    HI
    I want to make stories system in PHP website
    i am searching for the jquery to show stories in popup like you doing
    Can you provide me jquery library used for popup for this functionality so that i can use it in my website
    I am ready to pay for this please let me know
    here is my email id
    [email protected]
    Thank you !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding a Story using XML-RPC’ is closed to new replies.