Пример #1
0
        public BullhornClient(BullhornRestCredentials credentials)
        {
            this.restApiSession = new RestApiSession(credentials);
            this.httpClient     = HttpClientFactory.httpClient;

            this.restUrl                 = restApiSession.RestUrl;
            this.restUrlFactory          = new RestUrlFactory(restUrl);
            this.restUriVariablesFactory = new RestUriVariablesFactory(this);
            this.restErrorHandler        = new RestErrorHandler();
            this.restFileManager         = new RestFileManager();
        }
Пример #2
0
        public void Initialize()
        {
            bullhornRestCredentials = new BullhornRestCredentials();
            bullhornRestCredentials.RestAuthorizeUrl         = "https://auth9.bullhornstaffing.com/oauth/authorize";
            bullhornRestCredentials.RestLoginUrl             = "https://rest9.bullhornstaffing.com/rest-services/login";
            bullhornRestCredentials.RestTokenUrl             = "https://auth9.bullhornstaffing.com/oauth/token";
            bullhornRestCredentials.RestSessionMinutesToLive = 1400;
            bullhornRestCredentials.Username         = "******";
            bullhornRestCredentials.Password         = "******";
            bullhornRestCredentials.RestClientId     = "7575e977-498a-41e7-aeca-dc56101cca31";
            bullhornRestCredentials.RestClientSecret = "eBArvY6fu2iMeox0AxsX5OQY";

            restApiSession = new RestApiSession(bullhornRestCredentials);
        }