Json API (2 posts)

  1. newsniper
    Posted 2 years 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
    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic