Floobs API Gem

This gem implements a full-featured ruby interface for the Floobs API. It was inspired from Matt Hooks work on vimeo API gem.

Install

If you haven’t already, add github’s gem server to your sources:

gem sources -a http://gems.github.com

Then, it’s as easy as:

sudo gem install gravis-floobs

Add the gem plugin to your Rails project by adding the following to your @environment.rb@ file:

config.gem "gravis-floobs", :lib => "floobs"

Usage

You don’t need an API key for simple queries.

Floobs::Clip

Floobs::Clip.find_all_by_user_name(“gravis”)

> [Phil”, “ownerName”=>“gravis”, “category”=>0, “language”=>“fr”, “tags“=>, ”smallThumbnailUrl“=>”“, ”durationSeconds“=>5.92, ”url“=>”floobs.com/mediastream.service?clip=8444“, ”type“=>”flv“, ”id“=>8444, ”description“=>”test Phil“, ”bigThumbnailUrl“=>”“, ”created“=>1236028267000, ”totalViews“=>6]

There’s an issue with tag searching, I’ll take a look asap.

Floobs::Playlist

Floobs::Channel