- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我已经成功安装了 Tweepy。我已经成功安装了 SocialRegistration (Twitter oauth)。但现在我正在尝试在 Tweepy 中做一些需要身份验证的事情,但它无法正常工作。我不断收到“需要身份验证”错误页面。我如何“连接”SocialRegistration 与 Tweepy?我需要将 token 传递给 tweepy 吗?请问有谁用过这两个模块吗?提前致谢。
最佳答案
不太清楚您要通过这两个模块(社会注册和 tweepy)实现什么
我假设您正在尝试使用 tweepy API 来做一些需要身份验证的事情(例如状态更新),所以这里是如何在 tweepy 中进行简单的 oauth 身份验证。
#Requirements:
#tweepy
#consumer_key
#consumer_secret
#access_token_key
#access_token_secret
import tweepy
#build auth handler
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token_key, access_token_secret)
# initialize tweepy API
api = tweepy.API(auth)
# thats it. you can start doing stuff that requires authentication =)
api.update_status('tweepy + oauth!')
任何人,我希望能帮助您实现您想要实现的目标?如果有的话,tweepy 在 http://joshthecoder.github.com/tweepy/docs/index.html 上有很好的文档(相信我,它很容易阅读)
干杯
关于python - Tweepy 和 SocialRegistration 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5147700/
我已经成功安装了 Tweepy。我已经成功安装了 SocialRegistration (Twitter oauth)。但现在我正在尝试在 Tweepy 中做一些需要身份验证的事情,但它无法正常工作。
我是一名 Django 业余爱好者,在使用 django-registration 时遇到了问题。我按照他们 website 上的安装说明进行操作,但对于像我这样的人来说,这些说明并不是 100% 清
要么我的 google 搜索完全离开了我,要么几乎没有任何关于 django-socialregistration 的文档/教程。太糟糕了,因为它似乎是一个足够好的应用程序。通过一些反复试验,我设法让
我在网上看到过错误 191,我知道这与应用程序的配置有问题有关。 但是我还没有找到大多数问题的答案,也没有找到对我有帮助的答案。 我在 Facebook 上的应用是这样设置的: 网站网址 http:/
我是一名优秀的程序员,十分优秀!