Package com.uip.tatar.api

Examples of com.uip.tatar.api.APITatarRequest


        JsonHttpEntity entity = new JsonHttpEntity();
        entity.put("username", phoneNumber);
        entity.put("password", password);

        return client.post(
                new APITatarRequest(USERS_SECTION, entity),
                new UserModelFactory(false)
        );
    }
View Full Code Here


        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);
    }
View Full Code Here

    private APITatarRequest createAuthRequest(String username, String password) {
        JsonHttpEntity userAuthParams = new JsonHttpEntity();
        userAuthParams.put("username", username);
        userAuthParams.put("password", password);

        return new APITatarRequest("sessions", userAuthParams);
    }
View Full Code Here

TOP

Related Classes of com.uip.tatar.api.APITatarRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.