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; }
public OAuth2Helper(OAuthSettings settings) { Settings = settings; OAuthSettings.OAuthVersion = "2.0"; }
//private IDictionary<string, string> _accessTokenParames; public OAuthHelper(OAuthSettings settings) { Settings = settings; }