Package com.uip.tatar

Examples of com.uip.tatar.APITatar


        }
    }

    @Test
    public void sendSMSTest() {
        APITatar apiTatar  = APITatarProvider.get();
        try {
            apiTatar.auth(LOGIN, PASSWORD);
            apiTatar.sendSMS("50d308f5dc490ef10e00000d", "test");
        catch (APITatarException ex) {
            Assert.fail(ex.getMessage());
        }
    }
View Full Code Here


                    .secretKey("f8dc24763533a2854c5947ca190169a35f1f41e2077b39ff15aeb6a10ee3b5c8219815f56e66746f"//default
                    .serverDoesNotRespondErrorText("Сервер не отвечает") //default
                    .wrongServerResponseErrorText("Неправильный формат ответа сервера") //default
                    .build();

            APITatar apiTatar =  APITatarFactory.getInstance(apiTatarConfiguration);

            //auth
            apiTatar.auth("9518976217", "1");

            //get user
            User user =  apiTatar.getUser("9518976217", "1");

            user.setLastName("blablabla");
            Vehicle vehicle =  user.getDefaultVehicle();
            user.removeVehicle(vehicle);

            //update
            apiTatar.updateUser(user);

            //get fines
            GibddFines fines = apiTatar.getFines(user.getDefaultVehicle());

            //get payment histories
            PaymentHistories paymentHistories = apiTatar.getPaymentHistories(user.getId(), new Paginate());

            //send sms
            apiTatar.sendSMS(user.getId(), "message text");


            //System.out.println(fines);

        } catch (APITatarException iex) {
View Full Code Here

TOP

Related Classes of com.uip.tatar.APITatar

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.