Answers for "java.lang.IllegalArgumentException: @Field parameters can only be used with form encoding. (parameter #1)"

0

java.lang.IllegalArgumentException: @Field parameters can only be used with form encoding. (parameter #1)

public interface AuthRegisterUserApi {
    @FormUrlEncoded
    @PUT("/api/register")
    Call<AuthRegisterUserModel> getStatus(
            @Field("username") String username,
            @Field("email") String email,
            @Field("password") String password,
            @Field("fbID") String fbID,
            @Field("gmailID") String gmailID,
            @Field("twitID") String twitID,
            @Field("gender") String gender,
            @Field("birthDate") String birthDate,
            @Field("location") String location,
            @Field("longitude") String longitude,
            @Field("latitude") String latitude,
            @Field("profileImage") String profileImage
            );
Posted by: Guest on October-15-2020

Code answers related to "java.lang.IllegalArgumentException: @Field parameters can only be used with form encoding. (parameter #1)"

Browse Popular Code Answers by Language