使用flatter从OpenWeatherMapAPI获取每日天气预报

使用flatter从OpenWeatherMapAPI获取每日天气预报,api,openweathermap,dart-http,android-studio-4.2,weatherdata,Api,Openweathermap,Dart Http,Android Studio 4.2,Weatherdata,我对每小时天气预报的OpenWeatherMapAPI有一个问题。我从这个api检索了5天/3小时的天气数据。但现在我要每日天气预报。我正在使用这个api,但这一个给了我这个错误,我尝试了很多次,但它给了我相同的错误 { "cod": 401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info." }

我对每小时天气预报的OpenWeatherMapAPI有一个问题。我从这个api检索了5天/3小时的天气数据。但现在我要每日天气预报。我正在使用这个api,但这一个给了我这个错误,我尝试了很多次,但它给了我相同的错误

{
"cod": 401,
"message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."
}
同时,我使用这个api获取每日天气预报

https://pro.openweathermap.org/data/2.5/forecast/hourly?lat=21&lon=39&appid=58b73781d0f050d557b4ac143bb61b0c
请建议我一些解决方案,为什么我无法获得每日天气预报的响应