【发布时间】:2011-04-16 02:47:54
【问题描述】:
我正在尝试一种解决方法,以便在使用 Twitter API 时不必每次都按下允许按钮。
if (Request["oauth_token"] == null)
{
//Redirect the user to Twitter for authorization.
//Using oauth_callback for local testing.
oAuth.CallBackUrl = "http://localhost";
Response.Redirect(oAuth.AuthorizationLinkGet());
}
在上面的代码示例中,我只获得了一个 OAuth 令牌,但 Twitter 要求我确认我是否要允许访问。有没有一种解决方法让我不必接受?
【问题讨论】: