Skip to content

K1ta/api_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A library for simplifying requests to API.

Usage

A simple usage example:

import 'package:api_client/api_client.dart';
import 'package:http/http.dart';

void main() async {
  var e = Endpoint(
    'GET',
    StaticHost('google.com'),
    '/',
    defaultHandler: (r) => print(r.body),
  );

  var c = Client();
  var api = ApiClient(c, '');

  await api.request(e);
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published