cuba_weather_insmet_dart 0.1.0 cuba_weather_insmet_dart: ^0.1.0 copied to clipboard
Application programming interface of the Cuba Weather project for insmet.cu implemented in Dart. Given a municipality in Cuba, weather data on the municipality is obtained.
import 'dart:io';
import 'package:cuba_weather_insmet_dart/cuba_weather_insmet_dart.dart';
void main() {
print('Insert municipality:');
var input = stdin.readLineSync();
var cubaWeatherInsMet = CubaWeatherInsMet();
cubaWeatherInsMet.get(input).then((weather) {
print(weather);
});
}