Python 3 的 OAuth 端口

标签 oauth python-3.x oauth-2.0

我正在尝试在 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/

相关文章:

来自一系列图像的python 16位灰度视频

python - 替换任何类型对象列表的模式,类似于字符串的 .replace

go - 后续的REST对Go Server的调用未返回Cookie

oauth - google oauth2 刷新 token 什么时候过期?

python - 如何使用 Python 在我的 google fusion 表中插入一行

javascript - 如何请求用户信息的权限?

cordova - 用于移动应用程序和网站的 Ionic 和 Google OAuth

ios - 从LinkedIn API获取电子邮件地址

php - 如何生成 OAuth 签名

python-3.x - 如何在 TfidfVectorizer.fit_transform() 中传递用户定义的函数