apklis_api 0.0.1 copy "apklis_api: ^0.0.1" to clipboard
apklis_api: ^0.0.1 copied to clipboard

discontinuedreplaced by: apklis_web_api
outdated

API for Apklis (Cuban Android App Store) implemented in Dart

Apklis API - Dart #

API for Apklis (Cuban Android App Store) implemented in Dart.

Supports Dio package and Http package. In addition to the packages that inherit from these.

Getting Started #

Initialize an instance of the ApklisApi class by passing it the package name as a parameter:

var apklisApi = ApklisApi(packageName);

You can also choose to pass a Dio instance or Client instance to the dioClient and httpClient parameters. If both are passed the httpClient will be used.

var apklisApi = ApklisApi(
    packageName,
    dioClient: Dio(),
    httpClient: Client(),
  );

To make the request and obtain the information, use the get method that returns a Future.

var info = await apklisApi.get();

If you want to use a specific library, you can use the getWithDio and/or getWithHttp methods.

var infoWithDio = await apklisApi.getWithDio();
var infoWithClient = await apklisApi.getWithHttp();

Also using the getWithDio and/or getWithHttp methods you can use a specific instance of Dio and Client respectively.

var infoWithDio = await apklisApi.getWithDio(dioClient: Dio());
var infoWithClient = await apklisApi.getWithHttp(httpClient: Client());
5
likes
30
pub points
0%
popularity

Publisher

unverified uploader

API for Apklis (Cuban Android App Store) implemented in Dart

Homepage

License

GPL-3.0 (LICENSE)

Dependencies

dio, flutter, http, json_annotation

More

Packages that depend on apklis_api