WordPress.org

Ready to get started?Download WordPress

Forums

Json API (2 posts)

  1. newsniper
    Member
    Posted 3 months ago #

    Hi coders...
    Im new in wordpress. Do i actually need to install json api plugin in the website to retrieve details from the website to my new android app???
    Actually i got the api url from where i need to get the details.
    i got this kind of URL ' http://www.example.org/?json=1&post_type='XXX' ' .
    So can i use this URL in my android code without installing JSON API plugin in the parent website?

  2. bcworkz
    Member
    Posted 3 months ago #

    Not really. Without the plugin, WP does not know what json=1 means. WP and PHP can encode JSON without the API, but some additional coding is required to make this happen on a default installation. Doing so may be more efficient for specific applications, but in your case it sounds like the plugin is the way to go.

Reply

You must log in to post.

About this Topic