예제 #1
0
        static async Task Main(string[] args)
        {
            var openWeatherService = OpenWeatherService.CreateOpenWeatherService(Secrets.OpenWeatherApiKey);
            var query = new OpenWeatherQuery(
                "Karlsruhe,de",
                new OpenWeatherDaySpecification(RelativeDay.NextDay, DateTime.Today)
                );
            var matches = await openWeatherService.GetForecasts(query).ConfigureAwait(false);

            foreach (var match in matches)
            {
                Console.WriteLine(match.ToString());
            }
        }