Exemple #1
0
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///     Initializes a new instance of the OAuth2Client class.
 /// </summary>
 ///
 /// <remarks>
 ///     Anwar Javed, 10/16/2013 12:08 PM.
 /// </remarks>
 ///
 /// <param name="appID">
 ///     The consumer key.
 /// </param>
 /// <param name="appSecret">
 ///     The consumer secret.
 /// </param>
 /// <param name="token">
 ///     The token.
 /// </param>
 /// <param name="tokenAccessType">
 ///     The type of the token access.
 /// </param>
 ///-------------------------------------------------------------------------------------------------
 protected OAuth2Client(string appID, string appSecret, string token, OAuth2TokenAccessType tokenAccessType = OAuth2TokenAccessType.Header)
 {
     this.AppID      = appID;
     this.AppSecret  = appSecret;
     this.Credential = new OAuth2TokenCredential()
     {
         Token = token
     };
     this.TokenAccessType = tokenAccessType;
 }
Exemple #2
0
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///     Initializes a new instance of the OAuth2Client class.
 /// </summary>
 ///
 /// <remarks>
 ///     Anwar Javed, 10/16/2013 12:08 PM.
 /// </remarks>
 ///
 /// <param name="appID">
 ///     The consumer key.
 /// </param>
 /// <param name="appSecret">
 ///     The consumer secret.
 /// </param>
 /// <param name="credential">
 ///     The credential.
 /// </param>
 /// <param name="tokenAccessType">
 ///     The type of the token access.
 /// </param>
 ///-------------------------------------------------------------------------------------------------
 protected OAuth2Client(string appID, string appSecret, OAuth2TokenCredential credential, OAuth2TokenAccessType tokenAccessType = OAuth2TokenAccessType.Header)
 {
     this.AppID           = appID;
     this.AppSecret       = appSecret;
     this.Credential      = credential;
     this.TokenAccessType = tokenAccessType;
 }