open_weather_api 1.5.5 copy "open_weather_api: ^1.5.5" to clipboard
open_weather_api: ^1.5.5 copied to clipboard

Client library to access Open Weather Map API.

example/open_weather_api_example.dart

import 'dart:io';
import 'package:http/io_client.dart';
import 'package:open_weather_api/open_weather_api.dart';

import 'package:jaguar_resty/jaguar_resty.dart';

main() async {
  globalClient = IOClient();

  final apiKey = Platform.environment["OWM_API_KEY"];

  final api = OpenWeatherApi(apiKey);

  print((await api.byId("2172797")).simplified());

  print((await api.dailyForecastsById("2172797")));

  print((await api.hourlyForecastsById("2172797")).simplified());
}
1
likes
15
pub points
0%
popularity

Publisher

unverified uploader

Client library to access Open Weather Map API.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

jaguar_resty, jaguar_serializer

More

Packages that depend on open_weather_api