coingecko_client 1.0.4 copy "coingecko_client: ^1.0.4" to clipboard
coingecko_client: ^1.0.4 copied to clipboard

outdated

A simple and intuitive package to access the CoinGecko REST API Service

example/main.dart

import 'package:coingecko_client/coingecko_client.dart';

void main() async {
  try {
    var client = CoinGeckoClient();

    /// sample call for - /ping
    var result = await client.ping.getResult();
    print(result);
  } on NetworkRequestException catch (e, _) {
    print(e.message);
  } on FormatException catch (e, _) {
    print(e.message);
  } on TypeError catch (e, _) {
    print(e.stackTrace);
  } catch (_) {
    /// Do something here or just rethrow
    rethrow;
  }
}
2
likes
0
points
19
downloads

Publisher

verified publisherpangz.tech

Weekly Downloads

A simple and intuitive package to access the CoinGecko REST API Service

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on coingecko_client