Twitter Stats
Connects to the Twitter API and displays statistics about the number of tweets and followers for a set of usernames.
To make this work, you'll need a couple of things:
and one of the following:
a) Twitter bearer token
b) Consumer API keys
You must have either a bearer token or consumer key + consumer secret provided. To get the consumer API keys, you must first create a Twitter application. Then, go to the "Keys and tokens" page and copy the API key and API secret key under the Consumer API keys section.
Once you have your developer account, a relatively painless way to get a bearer token is to use TBT.
Configuration
twitterstats:
consumerKey: "32xxxxxxxxxxxxxxxxxxxxxxxxxxxxa9"
consumerSecret: "12xxxxxxxxxxxxxxxxxxxxxxxxxxxxab"
enabled: true
position:
top: 0
left: 1
height: 1
width: 1
refreshInterval: 20000s
screenNames:
- "wtfutil"
- "dril"
Attributes
Name | Value |
---|---|
bearerToken
Optional Your Twitter single-application Bearer Token. This must be supplied if consumerKey and consumerSecret are not.
|
|
consumerKey
Optional Your Twitter Consumer API secret. This must be supplied along with consumerSecret if bearerToken isn't supplied.
|
|
consumerSecret
Optional Your Twitter Consumer API key. This must be supplied along with consumerKey if bearerToken isn't supplied.
|
|
screenNames
The screen names of the Twitter users who's tweets you want to follow. |
Source Code
https://github.com/wtfutil/wtf/tree/master/modules/twitterstats