0
我使用Codeplex的AWeber API创建私有应用程序。在AWeber API上保存身份验证密钥
根据http://aweber.codeplex.com/documentation的文档,在授权应用程序后,我可以保存api.OAuthToken和api.OAuthTokenSecret以用于进一步调用。
我的代码做的是:
API api = new API(consumerKey, consumerSecret);
api.OAuthToken = oauth_token; // Saved previously
api.OAuthTokenSecret = oauth_token_secret; // Saved previously
Account account = api.getAccount();
呼叫
到api.getAccount()
我得到一个Remote Server: 401 Not authorized
异常。
我在做什么错了?我可以存储多久的令牌并仍然有效?我是否需要另一个电话或在api上设置另一个字段?
感谢您的回复。