Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 404 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 404 Bytes

Cuba Weather Dart Examples

Example of application programming interface of the Cuba Weather project implemented in Dart.

import 'dart:io';

import 'package:cuba_weather_dart/cuba_weather_dart.dart';

void main() {
  print('Insert municipality:');
  var input = stdin.readLineSync();
  var cubaWeather = CubaWeather();
  cubaWeather.get(input).then((weather) {
    print(weather);
  });
}