1
我试图配置一个请求到http://where.yahooapis.com/v1/places.q(name_here);count=50?...。 不是最好的解决办法,我想,但我想翻新查询参数
@GET("/v1/{location}")
Places getLocations(@Path("location") String locationName);
,并通过有
getLocations("places.q(" + locationName + ");count=50");
但它仍然没有为字符串工作();被翻译成%28%29%3B。
你能提出任何解决方案吗?这将是更好的dinamycally只修改name_here部分,像
@GET("/v1/places.q({location});count=50)
如果它是不可能怎么做我必须要通过符号();以便它们正确转换?
* @get(“/ v1/places.q({位置}); count = 50”是否存在问题)位置getLocations(@Path(“location”)String locationName); *? – Ayzen 2014-09-21 09:53:04