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

A simple and intuitive package for the CoinGecko REST API Service ( v3 )

example/main.dart

import 'package:coingecko_client/coingecko_client.dart';

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

    /// sample call for - /ping
    final 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
160
pub points
39%
popularity

Publisher

verified publisherpangz.tech

A simple and intuitive package for the CoinGecko REST API Service ( v3 )

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http

More

Packages that depend on coingecko_client