Page 1 of 1

Building a WP search app json API

Posted: Wed Feb 26, 2014 9:22 pm
by dora

I'm trying to build an app which searches in a backend WP blog with "json-api" plug-in (the data is rendered with the method "get_search_results": url_site/api/get_search_results/?search=term

The question is if I can skip the part with OAuth2 REST service from the "Building a Twitter search app" tutorial? If yes, how can I further invoke the Search service for the SearchButton?

thank you
Dora


Building a WP search app json API

Posted: Wed Feb 26, 2014 9:46 pm
by Kateryna Grynko

Hi Dora,

For Twitter search you will need to use authorization, this is how their API works.


Building a WP search app json API

Posted: Wed Feb 26, 2014 10:15 pm
by dora

Hi Katsa,

Perfectly understood for the twitter search!

The question was if for a WordPress API I can follow the "Building a Twitter search app" tutorial, but skipping the OAuth2 REST service part (which is not available in WP). In a such case, what would be the proper way to invoke the Search service for the SearchButton?


Building a WP search app json API

Posted: Thu Feb 27, 2014 11:33 am
by Maryna Brodina

Hello!
Create service with necessary parameters, add service on page. Do mapping of request and response parameters the way you need. Invoke service on any event (Page Show, button Click, etc.)