Turpentine
A delightful Twitter/Ruby on Rails learning project.
How to use
sudo gem install json yaml rest-open-uri
- Rename
config-example.yaml
toconfig.yaml
- Edit
user
andpassword
to match yours chmod +x turpentine.rb
./turpentine.rb
- To post tweets, open a new window and run
./turpentine.rb out
OAuth mode
gem sources -a http://gems.github.com
sudo gem install moomerman-twitter_oauth
- Edit the
auth_mode
line ofconfig.yaml
to readoauth
. You’ll need to register for OAuth and edit theoauth
section ofconfig.yaml
for your consumer key and secret.
Issues
This is all pretty clumsy at the moment, but it’s getting better. Here are some of the bigger concerns:
- The only things that currently work are tweeting, viewing @replies, and seeing the friends_timeline. Favorites, direct messages, &c. don’t exist.
- It would be good to verify that successful responses have a 200 code. I’m not
sure how to do it;
rest-open-uri
doesn’t seem to expose such information. - Currently there is no time zone support, so you’ll see weird timestamps.