Esempio n. 1
0
 public void SetBasicAuthentication(string userName, string password)
 {
     _authentication = new RestClientBasicAuthentication(userName, password);
 }
Esempio n. 2
0
 public void SetOAuthAuthentication(string consumerKey, string secretKey, string authToken = null)
 {
     _authentication = new RestClientOAuth1(consumerKey, secretKey, authToken);
 }
Esempio n. 3
0
 internal RestClient(string restApiUrl, IRestClientAuth authentication = null)
 {
     RestApiUrl      = restApiUrl;
     _authentication = authentication ?? new RestClientNoAuthentication();
 }