2013-05-21 2 views
2

유효하지 않습니다. 누군가 내가 내가 놓친 것을 보도록 도와 줄 수 있는지 궁금해하고 있었다.Aweber C# API 광고 무단 AccessToken 키는 내가에서 Aweber C#을 API에 문제가 오전

String consumerKey = "####"; 
String consumerSecret = "####"; 

API api = new API(consumerKey, consumerSecret); 

api.OAuthToken = "####"; 
api.OAuthTokenSecret = "####"; 
api.OAuthVerifier = "##"; 

Aweber.Entity.Account account = api.getAccount(); 

나는 중요한 것을 놓치고 있다고 가정하고 있지만, 나는 무엇인지 이해하지 못합니다.

미리 도움을 주셔서 감사합니다.

답변

0

api.getAccount();

 // Set callback url (if not set will default to this page) 
     api.CallbackUrl = "http://" + Request.Url.Host + ":" + Request.Url.Port + "/Authorize.aspx"; 

     // Get request token 
     api.get_request_token(); 
     // Save the token and secret in session 
     HttpContext.Current.Session.Add("oauth_token", api.OAuthToken); 
     HttpContext.Current.Session.Add("oauth_token_secret", api.OAuthTokenSecret); 

     // Will redirect user to the Aweber authorize page 
     api.authorize();