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

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
pub points
36%
popularity

Publisher

verified publisherpangz.tech

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