基于 Twitter PIN 的身份验证


Twitter PIN-based auth

所以我正忙于为Twitter构建一个应用程序,我希望人们使用PIN进行身份验证。(https://dev.twitter.com/oauth/pin-based)。

为了向人们展示PIN码,我需要使用这个:https://dev.twitter.com/oauth/reference/get/oauth/authorize

有例子说:https://api.twitter.com/oauth/authorize?oauth_token=*

所以我用我的"访问令牌"(d)尝试了它,但它说请求令牌无效。我做错了什么?

(完整网址为 https://api.twitter.com/oauth/authorize?oauth_token=3459712042-A8kkuqFqmhKs9qm9cGjEaGAwCWyik81cmE94HCD)

我自己已经找到了。我首先需要发布一个 POST 来request_token

https://dev.twitter.com/oauth/reference/post/oauth/request_token