Retrofit Post Parameter

前端 未结 6 974
无人共我
无人共我 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:16

    Retrofit 2.0 version:

    @FormUrlEncoded
    @POST("api/v2/users/sign_in")
    Call userSignIn(
            @FieldMap HashMap authData
    );
    

提交回复
热议问题