Apklis Http Web API

License: MIT Version codecov Test Melos Lint Last commit GitHub commit activity Github Stars Github Forks Github Watchers GitHub contributors


ImplementaciĆ³n concreta del paquete apklis_web_api para interactuar con la API de Apklis utilizando el paquete http.

Ejemplo de uso

import 'package:apklis_http_web_api/apklis_http_web_api.dart';
import 'package:http/http.dart' as http;

final httpClient = http.Client();
final api = ApklisHttpWebApi(httpClient);
final model = await api.get(['com.example.nova.prosalud']);
model.when(
    success: (result) {
        if (result.results.isNotEmpty) {
            print(result.results.first.name);
        }
    },
    failure: (error) {
        print('${error.statusCode}, ${error.statusMessage}');
    },
);

Libraries

apklis_http_web_api