久久精品国产精品青草色艺_www.一区_国内精品免费久久久久妲己_免费的性爱视频

Retrofit API的GET?

https://api.heweather.com/x3/weather?cityid=城市ID&key=XXXXXXXXX
這種API 如何用Retrofit 來書寫呢

@GET("x3/weather?cityid={cityid}&key={apikey}") Call<WeatherResult> WeatherGet(@Path("cityid") String id,@Path("apikey") String key);

這樣寫 被提示要使用`@Query("cityid") String id`

Call<WeatherResult> WeatherGet(@Query("<愛尬聊_頭條百科>cityid") String id,@Path("apikey") String key);

修改完后 又被提示 Path 不能放在 Query后面

那么我想問這樣的API 如何寫呢


劉3192988467 1天前

https://futurestud.io/tutoria... 根據這個來看應該就是這么寫吧


編輯 舉報 2023-04-19 12:10

0個評論

暫無評論...
驗證碼 換一張
相關內容