gpt4 book ai didi

c# - 使用 C# 使用 OAuth token 的 Twitter 应用程序

转载 作者:行者123 更新时间:2023-11-30 17:21:03 25 4
gpt4 key购买 nike

我正在尝试找到一个解决方法,这样我就不必在每次使用 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 token ,但 Twitter 要求我确认我想要允许访问。有没有解决方法,这样我就不必接受?

最佳答案

恐怕您无法控制允许步骤。让网站代表用户授权 token 请求可能是恶意的。

关于c# - 使用 C# 使用 OAuth token 的 Twitter 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3776013/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com