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:
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.
twitterstats: consumerKey: "3276d7155dd9ee27b8b14f8743a408a9" consumerSecret: "3276d7155dd9ee27b8b14f8743a408a9" enabled: true position: top: 0 left: 1 height: 1 width: 1 refreshInterval: 20000 screenNames: - "wtfutil" - "dril"
|`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.|
||Optional Whether or not to draw this widget with a border. Default:
||Optional The number of tweets to return per account. Default: 5.||Any positive integer|
||Optional Whether or not this module is executed and if its data displayed onscreen. Default:
||Optional Define one of the number keys as a short cut key to access the widget.||0..9|
||Defines where in the grid this module's widget will be displayed.|
||Optional How often, in seconds, this module will update its data. Default:
||Any positive integer|
||The screen names of the Twitter users who’s tweets you want to follow.||A list of any valid Twitter user’s screen names|