Updated code to use twitteroauth as a base.