hio 0.3.7 copy "hio: ^0.3.7" to clipboard
hio: ^0.3.7 copied to clipboard

Enhanced Http Client for Dart/Flutter. Make Api call easy, an Dart/Flutter package.

example/example.dart

import '../test/apis.dart';

dynamic githubDemo() async {
  var api = GithubApi();
  var x = api('users/:user/repos', urlParams: {'user': 'google'})
    ..successCB = (data, resp, c) {
      print('data received: $data');
      print('links: ${c.links}');
    }
    ..errorCB = (err, resp, c) {
      print('ERROR: $err');
    };

  return x.go();
}

void main() async {
  await githubDemo();

  print('--------------------- github api test ok..');
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Enhanced Http Client for Dart/Flutter. Make Api call easy, an Dart/Flutter package.

Homepage

License

MIT (LICENSE)

More

Packages that depend on hio