public RestApiSession(BullhornRestCredentials bullhornRestCredentials) { this.restCredentials = bullhornRestCredentials; this.httpClient = HttpClientFactory.httpClient; this.dateTimeBhRestTokenWillExpire = DateTime.Now; createSession(); }
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); }
public RestApiSession() { this.restCredentials = null; }