Package com.uip.tatar.sample

Source Code of com.uip.tatar.sample.AuthRequestSample

package com.uip.tatar.sample;

import com.uip.tatar.api.APITatarAuthClient;
import com.uip.tatar.config.BaseConfiguration;
import com.uip.tatar.api.APITatarDefaultClient;
import com.uip.tatar.config.Configuration;
import com.uip.tatar.config.ConfigurationBuilder;
import com.uip.tatar.model.APITatarSession;
/**
* Author: Khamidullin Kamil
* Date: 05.02.14
* Time: 10:51
*/
public class AuthRequestSample {
    public static void main(String[] args) {

        //Создаем настройки для апи клиента
        Configuration apiTatarConfiguration = new ConfigurationBuilder()
                .url("api.tatar.ru") //default
                .useSSL(true)
                .version("v1"//default
                .authorizationToken("1d4c9c2443d0e902c2bb0aa98dd6221b87b71be81ffd1de4b7ce410f9872bf8a33c627d48606baad"//default
                .secretKey("f8dc24763533a2854c5947ca190169a35f1f41e2077b39ff15aeb6a10ee3b5c8219815f56e66746f"//default
                .serverDoesNotRespondErrorText("Сервер не отвечает") //default
                .wrongServerResponseErrorText("Неправильный формат ответа сервера") //default
                .build();

        //APITatarSession session = new APITatarSession();
        //session.setToken("YOUR_AUTH_TOKEN");

        //Создаем апи клиент
        //APITatarDefaultClient apiClient = new APITatarAuthClient(apiTatarConfiguration, session);


    }
}
TOP

Related Classes of com.uip.tatar.sample.AuthRequestSample

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.