What Twitter access token should I use to automate

2019-08-30 11:19发布

问题:

I would like to know what access token I require to achieve the following.

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.

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?

回答1:

Yes, that's correct. It's quite simple too.

  1. Go to Twitter Apps and login with your regular twitter account assuming you have one, if not you need to create one.
  2. Once signed in click on Create New App button.
  3. Fill out the application (Name, description, and whatever else it requires).
  4. 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.
  5. Give the application you created a "Read and Write" permission based on what you asked in the question.

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.