Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the this class.
 /// </summary>
 /// <param name="consumerKey">An OAuth consumer key/api key</param>
 /// <param name="consumerSecret">The secret for the consumer key/api key</param>
 /// <param name="oauthEndpoints">The OAuth server endoints</param>
 protected OAuthClientBase(string consumerKey, string consumerSecret, IOAuthEndpoints oauthEndpoints)
 {
     this.ConsumerKey          = consumerKey;
     this.ConsumerSecret       = consumerSecret;
     this.OAuthSignatureMethod = Constants.HmacSha1SignatureMethod;
     this.OAuthEndpoints       = oauthEndpoints;
 }
Exemplo n.º 2
0
 /// <summary>
 /// The constructor that takes the IP hostname of the remote web service
 /// </summary>
 /// <param name="serviceAddress">The ip address of the host service</param>
 /// <param name="consumerKey">The consumer key to use with the oauth</param>
 /// <param name="consumerSecret">The consumer secret to use with the oauth</param>
 /// <param name="oauthEndpoints">The endpoints to use to get a tokens and authorize</param>
 public OAuthClient(string serviceAddress, string consumerKey, string consumerSecret, IOAuthEndpoints oauthEndpoints) : base(consumerKey, consumerSecret, oauthEndpoints)
 {
     this.ServiceAddress = serviceAddress;
 }