Tapslash

The Tapslash Developer Hub

Welcome to the Tapslash developer hub. Here you'll find comprehensive guides and documentation to help you start working with the SDK(s) as quickly as possible, as well as support if you get stuck slong the way. Let's jump right in!

Get Started    

getSearchResults(options, successCallback, errorCallback)

options is an object containing a service, and an optional query or category for obtaining search results.

If both a category and query parameter are supplied, only the query parameter will be regarded.
If only a service is supplied, a prepopulate search will be performed.

option
value
required

service

service json object obtained from the sync method

yes

category

category json object obtained from an array of categories on each service object

no

query

string; search term

no

If getSearchResults succeeds, successCallback will be called with an array of service objects, if the network request or JSON decode fails, errorCallback will be called with an error object.

client.getSearchResults({
    service: selectedService,   // required
    category: selectedCategory, // optional
    query: query                // optional  
  },
  function(results) {
    /* access your search results */
  }, 
  function(err) {
    /* error handling */
  }
);

getSearchResults(options, successCallback, errorCallback)