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