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