【发布时间】:2016-07-06 12:29:10
【问题描述】:
我正在尝试使用 Retrofit 向 Yahoo 请求当前天气。 我在试图通过这座城市时遇到了一个问题。我知道我必须使用@Query
Yahoo 查询有点复杂,我不知道如何继续。 这是我的代码
@GET("yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20**text%3D%22brussels%2C%20be%22)%20and%20u%3D%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys")
在这个复杂的查询中,我需要从 例如,text%3D%22brussels%2C%20be 到 text%3D%paris%2C%20fr。
任何帮助将不胜感激;
提前致谢,
【问题讨论】:
标签: android retrofit yahoo weather