From 19ef87bff9013fc51a2401e67e195294f42bdea3 Mon Sep 17 00:00:00 2001 From: Strawmanbobi Date: Mon, 29 May 2017 06:33:09 +0800 Subject: [PATCH] Update README.md --- README.md | 50 +------------------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/README.md b/README.md index a994ba5..8e9d4a6 100644 --- a/README.md +++ b/README.md @@ -1,52 +1,4 @@ # irext Java web API Indexing to the specified remote index and download its IR binary file - -#### Usage -1. Make the source code to a .jar file for your own project - -2. 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 categories = webApis.listCategories(); - -Fetch brands of a certain category other than STB: - - List brands = webApis.listBrands(category.getId()); - -Fetch cities (in China) for STB: - - List provinces = webApis.listProvinces(); - - List cities = webApis.listCities(provincePrefix); - -Fetch STB operators of a certain city: - - List; operators = webApis.listOperators(cityCode); - -Fetch remote indexes of a certain brand or STB operator: - - List 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()); +Please refer to the README in subfolders for [Android](https://github.com/irext/irext-web-api/tree/master/android) and [Java web](https://github.com/irext/irext-web-api/tree/master/web).