public SugarAuthenticator(SugarOAuthRequest authenticationrequest, string baseUrl) { _authenticationrequest = authenticationrequest; _baseUrl = baseUrl; FetchOAuthToken(); }
public SugarClient(IDictionary <string, string> apikeys) { _baseUrl = apikeys.FirstOrDefault(x => x.Key == "SugarUrl").Value; _authenticationRequest = new SugarOAuthRequest(apikeys); _sugarAuthenticator = new SugarAuthenticator(_authenticationRequest, _baseUrl); }