Ruby on Rails Friday, July 30, 2010

Just uploaded version 0.1 of a Ruby on Rails plugin
"simple_twitter_post" to github:

* http://github.com/stephan-buckmaster/simple_twitter_post

Makes it easy to update the twitter status of a configurable account
with this interface:

p = SimpleTwitterPost::Base.new
p.post("Welcome our new member ':user_name'. Profile is at :url",
:user_name => user.name, :url => user.url)

Result: Natural version of this message appears in the Twitter time
line.

Notes:

* The :url value is passed through tinyurl.com
* If values of :user_name (or other keys) cause the message to exceed
the 140 limit, they are truncated. The URL is not truncated, if
possible.

More in the README file,
http://github.com/stephan-buckmaster/simple_twitter_post

Uses Basic Authentication at the moment. Twitter says this will be
discontinued in a few weeks (http://dev.twitter.com/pages/oauth_faq)

This version is for feedback on the interface, see above. Incorporating
one of the twitter-gems for OAUTH to come.

Stephan
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment