f1a3cc7c26c7866c3d997337d0e4533e164cd1b7
irext Java web API
Indexing to the specified remote index and download its IR binary file
Usage
-
Make the source code to a .jar file for your own project
-
Java API methods
Import classes:
import net.irext.webapi.model.*;
import net.irext.webapi.WebAPIs;
Get web API instance:
WebAPIs webApis = WebAPIs.getInstance();
Sign in for access id and token:
Admin admin = webApis.signIn(userName, password);
int id = admin.getId();
int token = admin.getToken();
Fetch household appliances categories:
List<Category> categories = webApis.listCategories();
Fetch brands of a certain category other than STB:
List<Brand> brands = webApis.listBrands(category.getId());
Fetch cities (in China) for STB:
List<City> provinces = webApis.listProvinces();
List<City> cities = webApis.listCities(provincePrefix);
Fetch STB operators of a certain city:
List<StbOperator>; operators = webApis.listOperators(cityCode);
Fetch remote indexes of a certain brand or STB operator:
List<RemoteIndex> remoteIndexes = webApis.listRemoteIndexes(category.getId(), brand.getId(), city.getCode(), operator.getOperator_id());
Download IR binary for certain remote index:
InputStream is = webApis.downloadBin(remoteIndex.getRemote_map(), remoteIndex.getId());
Description
Cloud SDK for multiple platforms, you can introduce it from source code or Maven repository, make your changes to connect to your private cloud server.
Languages
Java
100%