我正在尝试在 python 3 中创建一个 Twitter 和 StatusNet 客户端,但我有一个问题,我找到的所有示例都使用 OAuth 库。有一些仅使用 curl 或简单例份验证的示例,但它非常基础。
您知道 Python 3 是否有 OAuth 端口(1 或 2)?
谢谢
更新 : 也许缺少端口是由 lack of good python 2 implementation 解释的?
最佳答案
有python oauthlib支持 python2/3 和 oauth1/2 的客户端。
根据 this page :
If your application is using OAuth, port your code from the old, unmaintained, OAuth1-only, Python 2-only oauth library (i.e. python-oauth) to the new, maintained, OAuth1 and OAuth2 compatible, Python 2 and Python 3 compatible oauthlib (i.e. python-oauthlib) package. Porting is not so hard, although some of the terminology updates in the OAuth spec since the original oauth was released make it a bit trickier.
关于Python 3 的 OAuth 端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9650101/