- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我希望能够通过在 GAE 上运行的应用程序发送推文。
请为此目的推荐一些 Python 库或 HTTP API。
最佳答案
关于 python-twitter:我认为你可以使用这个库,它似乎与 GAE 兼容:http://code.google.com/p/python-twitter/source/browse/twitter.py
另外:
Twitter 有一个非常出色的 REST API https://dev.twitter.com/docs/api ,您还可以简单地使用 appengine 中的 urlfetch 和 simplejson。
Twitter 使用 OAuth 进行身份验证,并建议了解其工作原理:
Twitter supports a few authentication methods and with a range of OAuth authentication styles you may be wondering which method you should be using. When choosing which authentication method to use you should understand the way that method will affect your users experience and the way you write your application.
Twitter 分享了一个非常棒的方法 https://dev.twitter.com/docs/auth/oauth
您还可以看到代码部分:http://code.google.com/p/jaikuengine/source/browse/trunk/oauth_client.py来自jaikuengine。
关于python - 如何从 GAE 发推文,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7344887/
我想开发一个 Skype 机器人,它将用户名作为输入,并根据用户输入以相反的字符大小写表示hello username。简而言之,如果用户输入他的名字 james,我的机器人会回复他为 Hello J
我是一名优秀的程序员,十分优秀!