Skip to content

Instantly share code, notes, and snippets.

View CaffeinatedDave's full-sized avatar

Dave Chaston CaffeinatedDave

View GitHub Profile
require 'yaml'
require 'twitter'
yaml = YAML.load_file('twitter.yaml')
$client = Twitter::REST::Client.new do |config|
config.consumer_key = yaml["consumer_key"]
config.consumer_secret = yaml["consumer_secret"]
config.access_token = yaml["token"]
config.access_token_secret = yaml["secret"]