public Session(string clientId, string clientSecret, string instanceId, string userId, string password) { _clientId = clientId; _clientSecret = clientSecret; _instanceId = instanceId; _userId = userId; _password = password; _client = new HttpClient() { BaseAddress = new Uri(_apiUrl) }; ServicePointManager.DefaultConnectionLimit = 100; _accessToken = null; Loans = new Loans(this); Schemas = new Schemas(this); Webhooks = new Webhooks(this); Reports = new Reports(this); Pipeline = new Pipeline(this); }
public Session(string ClientID, string ClientSecret, string InstanceID, string UserID, string Password) { _ClientID = ClientID; _ClientSecret = ClientSecret; _InstanceID = InstanceID; _UserID = UserID; _Password = Password; _client = new HttpClient(); _client.BaseAddress = new Uri(API_URL); ServicePointManager.DefaultConnectionLimit = 100; _AccessToken = null; loans = new Loans(this); schemas = new Schemas(this); webhooks = new Webhooks(this); reports = new Reports(this); pipeline = new Pipeline(this); }