Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/223.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android应用程序中的雅虎天气API 7天预报_Android_Yahoo Api_Yahoo Weather Api - Fatal编程技术网

Android应用程序中的雅虎天气API 7天预报

Android应用程序中的雅虎天气API 7天预报,android,yahoo-api,yahoo-weather-api,Android,Yahoo Api,Yahoo Weather Api,我正在尝试在我的Android应用程序中使用Yahoo weather API显示天气预报 以下服务为我提供7天天气预报: http://weather.yahooapis.com/forecastrss?w=1940345&d=7 但当我尝试用YahooAPI将响应转换为JSON格式的值时,它只返回5天的值 http://query.yahooapis.com/v1/public/yql?q=select%20item%20from%20weather.forecast%20wher

我正在尝试在我的Android应用程序中使用Yahoo weather API显示天气预报

以下服务为我提供7天天气预报:

http://weather.yahooapis.com/forecastrss?w=1940345&d=7
但当我尝试用YahooAPI将响应转换为JSON格式的值时,它只返回5天的值

http://query.yahooapis.com/v1/public/yql?q=select%20item%20from%20weather.forecast%20where%20woeid=1940345&d=7&format=json

请告诉我需要对Yahoo API查询进行哪些更改才能正确获取7天天气预报。

您是否找到了解决方案?我是在iOS上做的,但服务调用应该是相同的。我想在web应用程序中使用它,但遇到了相同的问题。