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
- Flickr Original updates
(Saturday 08/7/2010 – 7 Comments) - LED Light for iPhone 4
(Monday 06/28/2010 – 45 Comments) - WWDC 2010: Worth Every Minute
(Monday 06/14/2010 – No Comments) - Flickr Original for Safari 5!
(Wednesday 06/9/2010 – 26 Comments)
