【问题标题】:Twitter App using C# using OAuth token使用 C# 使用 OAuth 令牌的 Twitter 应用程序
【发布时间】: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 要求我确认我是否要允许访问。有没有一种解决方法让我不必接受?

【问题讨论】:

    标签: c# .net twitter oauth


    【解决方案1】:

    恐怕允许步骤完全不在你的掌控之中。让网站代表用户授权令牌请求可能是恶意的。

    【讨论】:

      猜你喜欢
      • 2010-12-14
      • 2011-05-26
      • 2011-06-15
      • 2012-08-12
      • 1970-01-01
      • 2011-09-08
      • 2017-01-10
      • 2013-03-16
      • 1970-01-01
      相关资源
      最近更新 更多