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

outdated

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"));

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

  print(await api.hourlyForecastsById("2172797"));
}
1
likes
0
pub points
13%
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