Class: Data

cercalia.service.Data

Class to get several information from Cercalia servers, like list of enabled categories into the API and the client and countries list.

Methods

getCategories(callbackFunction){Array.<Object>}

Get an array with the categories and subcategories list. The images are specified in a CSS class rule.

Name Type Description
callbackFunction function
Returns:
ClassName. cercalia.service.Data.

getCountries(callbackFunction){Array.<Object>}

Get an array with countries list

Name Type Description
callbackFunction function