Using Call Enqueue function in Retrofit

前端 未结 3 1664
说谎
说谎 2021-02-02 12:49

I am using Retrofit-2.0.0 for my app. Now every tutorial on Retrofit I found on web is based on earlier Retrofit and there was no Call

3条回答
  •  时光取名叫无心
    2021-02-02 13:21

    @AbKDs, I don't know if you already solved it, but I found out after some struggle with retrofit 2 that you need to put "http://api.themoviedb.org" as your baseUrl and add the whole path in @GET. Like so: @GET("/3/discover/movie") And then you add your queries as params for your interface Call.

提交回复
热议问题