public OAuth1RequestInterceptor(string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret) { this.consumerKey = consumerKey; this.consumerSecret = consumerSecret; this.accessToken = accessToken; this.accessTokenSecret = accessTokenSecret; this.signingSupport = new SigningSupport(); }
public OAuth1Template(string consumerKey, string consumerSecret, string requestTokenUrl, string authorizeUrl, string authenticateUrl, string accessTokenUrl, OAuth1Version version) { ArgumentUtils.AssertNotNull(consumerKey, "consumerKey"); ArgumentUtils.AssertNotNull(consumerSecret, "consumerSecret"); ArgumentUtils.AssertNotNull(requestTokenUrl, "requestTokenUrl"); ArgumentUtils.AssertNotNull(authorizeUrl, "authorizeUrl"); ArgumentUtils.AssertNotNull(accessTokenUrl, "accessTokenUrl"); this.consumerKey = consumerKey; this.consumerSecret = consumerSecret; this.requestTokenUrl = new Uri(requestTokenUrl); this.authorizeUrl = authorizeUrl; this.authenticateUrl = authenticateUrl; this.accessTokenUrl = new Uri(accessTokenUrl); this.version = version; this.restTemplate = this.CreateRestTemplate(); this.signingSupport = new SigningSupport(); }