coingecko_client 1.2.2
coingecko_client: ^1.2.2 copied to clipboard
A simple and intuitive package for the CoinGecko REST API Service ( v3 )
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;
}
}