我正在尝试将 Wunderground 整合到我当前的项目中。我看过几个 api 教程,但我似乎无法弄清楚如何访问 API 的某个部分。例如,这是 API 的样子:
{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
"features": {
"history": 1
}
}
,
"history": {
"date": {
"pretty": "August 9, 2015",
"year": "2015",
"mon": "08",
"mday": "09",
"hour": "12",
"min": "00",
"tzname": "America/Los_Angeles"
},
假设我只想从 API 返回小时。我该怎么做?