Gets last 5 tweets, number of tweets, following and followers given a Twitter username.
This is a coding test for a prospective employer.
Write a program that accepts a Twitter username as input, and returns the last 5 tweets, plus number of Tweets, Following, and Followers for that Twitter username.
'@' character before username is optional, both with and without it works.
You'll need to modify config.js
to set config.consumer_key
and config.consumer_secret
with a
valid Twitter API Consumer Key and Consumer Secret.
There are some external dependencies, so you'll need to $ npm install
first.
This program will runs in a Node.js environment. Simply run $ node twitter username
(eg. $ node twitter @bkbooth11
). Run $ node twitter --help
to see usage instructions.