103104105106107108109110111
JsonHttpEntity entity = new JsonHttpEntity(); entity.put("username", phoneNumber); entity.put("password", password); return client.post( new APITatarRequest(USERS_SECTION, entity), new UserModelFactory(false) ); }
130131132133134135136
JsonHttpEntity entity = new JsonHttpEntity(); entity.put("type", "gosuslugi"); entity.put("region_number", "16"); entity.put("message", message); client.post(new APITatarRequest(USERS_SECTION + "/" + userId + "/sms", entity), null); }
96979899100101102
private APITatarRequest createAuthRequest(String username, String password) { JsonHttpEntity userAuthParams = new JsonHttpEntity(); userAuthParams.put("username", username); userAuthParams.put("password", password); return new APITatarRequest("sessions", userAuthParams); }