請求參數(shù){
"lat": "",
"lon": "",
"appid": "",
"units": "",
"mode": "",
"cnt": "",
"lang": ""
}
返回參數(shù)
{
"cod": "",
"message": "",
"cntAPI": "",
"list.dt": "",
"list.main.temp": "",
"list.main.feels_like": "",
"list.main.temp_min": "",
"list.main.temp_max": "",
"list.main.pressure": "",
"list.main.sea_level": "",
"list.main.grnd_level": "",
"list.main.humidity": "",
"list.main.temp_kf": "",
"list.weather.id": "",
"list.weather.main": "",
"list.weather.description": "",
"list.weather.icon": "",
"list.clouds.all": "",
"list.wind.speed": "",
"list.wind.deg": "",
"list.wind.gust": "",
"list.visibility": "",
"list.pop": "",
"list.rain.3h": "",
"list.snow.3h": "",
"list.sys.pod": "",
"list.dt_txt": "",
"city.id": "",
"city.name": "",
"city.coord.lat": "",
"city.coord.lon": "",
"city.country": "",
"city.population": "",
"city.timezone": "",
"city.sunrise": "",
"city.sunset": ""
}
錯誤碼
{
"400": "錯誤請求。如果請求中缺少某些必需參數(shù),或者某些請求參數(shù)的格式不正確或值超出允許的范圍,您可能會收到",
"401": "未經(jīng)授權(quán)。如果請求中未提供",
"404": "如果服務(wù)數(shù)據(jù)庫中不存在請求參數(shù)(",
"429": "請求過多。如果超出了向此",
"5xx": "意外錯誤。如果出現(xiàn)其他內(nèi)部錯誤,您可能會收到“5xx”錯誤。錯誤響應(yīng)代碼將為“5xx”。請聯(lián)系我們,并將收到此錯誤的"
}