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