Retrofit Post Parameter

前端 未结 6 978
无人共我
无人共我 2020-12-08 06:37

I am implementing login feature and for that using Post request but i am getting error saying

\"retrofit.RetrofitError: com.squareup.okhttp.interna

6条回答
  •  不思量自难忘°
    2020-12-08 07:17

    You can also pass multiple field parameter: for example:

    @FormUrlEncoded
    @POST("/oauth/access_token")
    void getToken(
        @FieldMap Map params, 
        Callback callback
    );
    

提交回复
热议问题