dora
Posts: 0
Joined: Wed Feb 26, 2014 9:22 pm

Building a WP search app json API

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Building a WP search app json API

Hi Dora,

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

dora
Posts: 0
Joined: Wed Feb 26, 2014 9:22 pm

Building a WP search app json API

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Building a WP search app json API

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.)

Return to “Issues”