coingecko_client 1.1.0 copy "coingecko_client: ^1.1.0" to clipboard
coingecko_client: ^1.1.0 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 {
    var 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
0
pub points
36%
popularity

Publisher

verified publisherpangz.tech

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on coingecko_client