Example #1
0
 public void Initialize(string appKey, string appSecret, string callbackUrl = null)
 {
     OAuthSettings = new OAuthSettings();
     OAuthSettings.AuthorizeUrl = "https://api.weibo.com/oauth2/authorize";
     OAuthSettings.AccessTokenUrl = "https://api.weibo.com/oauth2/access_token";
     OAuthSettings.CallbackUrl = string.IsNullOrEmpty(callbackUrl) ? "https://api.weibo.com/oauth2/default.html" : callbackUrl;
     OAuthSettings.AppKey = appKey;
     OAuthSettings.AppSecret = appSecret;
 }
Example #2
0
 public OAuth2Helper(OAuthSettings settings)
 {
     Settings = settings;
     OAuthSettings.OAuthVersion = "2.0";
 }
Example #3
0
 public OAuth2Helper(OAuthSettings settings)
 {
     Settings = settings;
     OAuthSettings.OAuthVersion = "2.0";
 }
Example #4
0
        //private IDictionary<string, string> _accessTokenParames;

        public OAuthHelper(OAuthSettings settings)
        {
            Settings = settings;
        }
Example #5
0
        //private IDictionary<string, string> _accessTokenParames;

        public OAuthHelper(OAuthSettings settings)
        {
            Settings = settings;
        }