需要OAuth令牌密钥才能获取OAuth令牌密钥?搞什么鬼?

需要OAuth令牌密钥才能获取OAuth令牌密钥?搞什么鬼?,oauth,twitter,twitter-oauth,Oauth,Twitter,Twitter Oauth,我一直在尝试实现“使用Twitter登录”,但我一直在努力解决如何为用户获取OAuth令牌机密的问题 Twitter API文档()说: 要启动登录流,应用程序必须通过向POST oauth/request_令牌发送签名消息来获取请求令牌 响应主体将包含oauth_令牌、oauth_令牌_secret和oauth_回调_确认参数 用于创建签名()的文档说: 标识应用程序所代表的帐户的值称为oauth令牌机密。该值可以通过几种方式获得,所有这些都在获取访问令牌时描述 和“获取访问令牌”页面链接返

我一直在尝试实现“使用Twitter登录”,但我一直在努力解决如何为用户获取OAuth令牌机密的问题

Twitter API文档()说:

要启动登录流,应用程序必须通过向POST oauth/request_令牌发送签名消息来获取请求令牌

响应主体将包含oauth_令牌、oauth_令牌_secret和oauth_回调_确认参数

用于创建签名()的文档说:

标识应用程序所代表的帐户的值称为oauth令牌机密。该值可以通过几种方式获得,所有这些都在获取访问令牌时描述

和“获取访问令牌”页面链接返回,完成循环


如果我需要令牌密钥来签署请求以获取令牌密钥,我如何获得令牌密钥?这是怎么回事?

从创建签名的文档中:

Note that there are some flows, such as when obtaining a request token, 
where the token secret is not yet known. In this case, the signing key 
should consist of the percent encoded consumer secret followed by an 
ampersand character '&'.
当您注册API密钥时,您收到了消费者机密。这是您想要用以获得请求令牌的签名


我强烈建议您考虑使用至少实现oauth基础知识的库,如signing if not a,假设您选择的语言可以使用该库。

关于创建签名的文档:

Note that there are some flows, such as when obtaining a request token, 
where the token secret is not yet known. In this case, the signing key 
should consist of the percent encoded consumer secret followed by an 
ampersand character '&'.
当您注册API密钥时,您收到了消费者机密。这是您想要用以获得请求令牌的签名


我强烈建议您考虑使用至少实现oauth基本功能的库,如signing if not a,假设您选择的语言可以使用该库。

谢谢,我不确定我怎么会错过它。我认为Python3.3没有支持“使用Twitter登录”的库。谢谢,我不知道我怎么会错过这个。我认为Python3.3没有支持“使用Twitter登录”的库。