merb and Twitter made easy with Twitter4R
Wednesday 11/26/2008 – Category: Merb
Updating twitter with merb is super easy with Twitter4R:
sudo gem install twitter4r
in config/dependencies.rb:
gem "twitter4r"
require 'twitter'
(just doing dependency "twitter4r" didn't work)
in your controller:
client = Twitter::Client.new(:login => 'username', :password => 'password')
status = client.status(:post, "hello world")
Leave a Reply
Recent Posts
- Marble Paint
(Friday 02/4/2011 – 1 Comment) - More Flickr Original Updates
(Sunday 01/23/2011 – 13 Comments) - Flickr Original updates
(Saturday 08/7/2010 – 19 Comments) - LED Light for iPhone 4
(Monday 06/28/2010 – 65 Comments)
