Sending JSON in POST request with Retrofit2
Use these in gradle compile ‘com.squareup.retrofit2:retrofit:2.3.0’ compile ‘com.squareup.retrofit2:converter-gson:2.3.0’ compile ‘com.squareup.retrofit2:converter-scalars:2.3.0’ Use these two POJO class …….. LoginData.class public class LoginData { private String email; private String password; public LoginData(String email, String password) { this.email = email; this.password = password; } /** * * @return * The email */ public String getEmail() { return email; } … Read more