cuba_weather_redcuba_dart 2.0.0 cuba_weather_redcuba_dart: ^2.0.0 copied to clipboard
Dart client for www.redcuba.cu weather API. Given a municipality in Cuba, weather data on the municipality is obtained.
import 'dart:io';
import 'package:cuba_weather_redcuba_dart/cuba_weather_redcuba_dart.dart';
void main() {
print('Insert municipality:');
var input = stdin.readLineSync();
var cubaWeatherRedCuba = CubaWeatherRedCuba();
cubaWeatherRedCuba.get(input).then((weather) {
print(weather);
});
}