<I built a login request using retrofit, passing e...
# stackoverflow
u
I built a login request using retrofit, passing either email and password or phone and password but I always end up getting 400 bad request error I tried almost everything @body @field even @path but the response is always the same 400 bad request interface API { @FormUrlEncoded @POST("login") @Headers( "Accept:application/json", "Content-Type:application/json; charset=UTF-8", "Content-Type:multipart/form-data; charset=UTF-8", "Accept-Language:ar" ) fun login( @Field("type") type:Int, @Field("method_type") method_type:String, @Field("email") email: String?, @Field("phone")...