# ZoomEye-API **Repository Path**: mirrors_donglua/ZoomEye-API ## Basic Information - **Project Name**: ZoomEye-API - **Description**: ZoomEye Android API SDK. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ZoomEye-API ZoomEye Android API ## Gradle [![Download](https://api.bintray.com/packages/donglua/maven/zoomeye-api/images/download.svg)](https://bintray.com/donglua/maven/zoomeye-api/_latestVersion) ```gradle compile 'org.droiders:zoomeye-api:0.1.3' ``` ## Usage * Create ZoomEyeApiService object ```Java Retrofit retrofit = new Retrofit.Builder() // .client(client) // .baseUrl("http://api.zoomeye.org") // .addConverterFactory(GsonConverterFactory.create(gson)) // .addCallAdapterFactory(RxJavaCallAdapterFactory.create()) // .build(); ZoomEyeApiService api = retrofit.create(ZoomEyeApiService.class); ``` * Request and error handle ```java ErrorBodyHandler errorHandler = new ErrorBodyHandler(retrofit); api.login(new LoginRequest(username, password)) .observeOn(AndroidSchedulers.mainThread()) .subscribe(tokenResponse -> { if (tokenResponse.isSuccessful()) { String accessToken = tokenResponse.body().toString(); Log.d("ZoomEye", "accessToken = " + accessToken); ... } else { ErrorBody errorBody = errorHandler.parseError(tokenResponse.errorBody()); Log.d("ZoomEye", errorBody.getMessage()); ... } }); ``` ## App * [ZoomEyeAndroid](https://github.com/donglua/ZoomEyeAndroid) ## License ``` Copyright 2016 Huang Donglu Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```