HTTParty: Quick Web Service Consumption From Any Ruby Class

Courtesy Ruby Inside  Sat, 08/02/2008 - 10:40

httparty.jpg

HTTParty is a new Ruby library by John Nunemaker (of railstips.org fame) that makes it a snap to build classes that can use Web-based APIs and related services.

At its simplest, you include the HTTParty module within a class, which gives your class a "get" method that can retrieve data over HTTP.

Further directives, however, instruct HTTParty to parse results (XML, JSON, and so on), define base URIs for the requests, and define HTTP authentication information....


 

More related items

Net::HTTP Cheat Sheet
Norwegian Rubyist August Lilleaas has been busy putting together a ton of examples of using the Net::HTTP Ruby library that comes with most Ruby distributions. I asked him if it'd be okay to...

TweetStream: Use the Twitter Streaming API from Ruby
A couple of weeks ago, popular micro-blogging service Twitter unveiled a beta "streaming API." Twitter's nature means they get hammered with polling requests so they've begun to experiment...

TwitterLand: 5 Twitter Data APIs In A Single Gem
TwitterLand (Github repository) is a single Ruby library that packages up access to, currently, 5 different Twitter-related data services. Note, however, it's not a library that allows you to...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com