我应该使用什么 Twitter 访问令牌来自动化推文? [英] What Twitter access token should I use to automate tweets?
问题描述
我想知道实现以下目标需要什么访问令牌.
I would like to know what access token I require to achieve the following.
My Meteor 应用程序会抓取各种 RSS 提要并制作每日摘要.我想在创建每日摘要时使用应用的 Twitter 帐户自动发布有关每日摘要的推文.
My Meteor app crawls various RSS feeds and makes a daily digest. I would like to automatically tweet about the daily digest when it is created, using the app's Twitter account.
如我所见,在 doc 中,似乎我需要使用 应用程序所有者访问令牌 并使用应用程序的 Twitter 帐户创建我的应用程序.这是一种正确的方法吗?
As I see, in the doc, it seems that I need to use application owner access token and create my app using the app's Twitter account. Is this a correct approach?
推荐答案
是的,没错.也很简单.
Yes, that's correct. It's quite simple too.
- 转到 Twitter 应用,然后使用您的常规 Twitter 帐户登录假设您有一个,如果没有,则需要创建一个.
- 登录后,点击创建新应用"按钮.
- 填写申请(名称、描述以及其他任何要求).
- 创建您的密钥和访问令牌.与您信任的用户共享这些信息,因为他们将用于访问 twitter API 以读取/写入信息.
- 为您创建的应用程序提供读取和写入"权限根据您在问题中提出的内容获得许可.
- Go to Twitter Apps and login with your regular twitter account assuming you have one, if not you need to create one.
- Once signed in click on Create New App button.
- Fill out the application (Name, description, and whatever else it requires).
- Create your key and access tokens. Share those with users that you trust as they'll be used to access the twitter API to read/write information.
- Give the application you created a "Read and Write" permission based on what you asked in the question.
然后,根据您使用的软件/语言,有大量现有的软件包可以帮助您访问和获取 API 中的信息.
Then depending on the software/language you use there's a plenty of existing packages that can help you access and obtain the information from the API.
这篇关于我应该使用什么 Twitter 访问令牌来自动化推文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!