Examples of APITatarAuthRequest


Examples of com.uip.tatar.api.APITatarAuthRequest

        params.put("vehicle[region]", vehicle.getRegion());
        params.put("vehicle[document_number]", vehicle.getPassport());


        return client.get(
                new APITatarAuthRequest("services/gibdd/fines", params),
                new GibddFinesModelFactory()
        );
    }
View Full Code Here

Examples of com.uip.tatar.api.APITatarAuthRequest

        HttpQueryParams params = new HttpQueryParams();
        params.put("username", username);
        params.put("password", password);

        return client.get(
                new APITatarAuthRequest(USERS_SECTION, params),
                new UserModelFactory(true)
        );
    }
View Full Code Here

Examples of com.uip.tatar.api.APITatarAuthRequest

            .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)
            .setDateFormat("yyyy-MM-dd")
            .create()
            .toJson(user);

        client.put(new APITatarAuthRequest(USERS_SECTION + "/" + user.getId(), new JsonHttpEntity(json)), null);

        user.clearUnsetData();

        return user;
    }
View Full Code Here

Examples of com.uip.tatar.api.APITatarAuthRequest

     * @param userId
     * @throws APITatarException
     */
    @Override
    public void removeUser(String userId) throws APITatarException {
        client.delete(new APITatarAuthRequest(USERS_SECTION + "/" + userId), null);
    }
View Full Code Here

Examples of com.uip.tatar.api.APITatarAuthRequest

     * @return
     */
    @Override
    public AppointmentHistories getAppointmentHistories(String userId, Paginate paginate) throws APITatarException {
        return client.get(
            new APITatarAuthRequest(USERS_SECTION + "/" + userId + "/operations/history/appointments"),
            new APITatarDefaultClient.DefaultResultHandler<AppointmentHistories>(AppointmentHistories.class)
        );
    }
View Full Code Here

Examples of com.uip.tatar.api.APITatarAuthRequest

     * @return
     */
    @Override
    public PaymentHistories getPaymentHistories(String userId, Paginate paginate) throws APITatarException {
        return client.get(
            new APITatarAuthRequest(USERS_SECTION + "/" + userId + "/operations/history/payments"),
            new APITatarDefaultClient.DefaultResultHandler<PaymentHistories>(PaymentHistories.class)
        );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.