Fork me on GitHub

bliptv by kellysutton

A Ruby gem for the blip.tv API.

The blip.tv Ruby gem project provides an easy interface to interact with the blip.tv API in Ruby.

Dependencies

Usage

While the blip.tv is extremely simple to use, sometimes it’s nice to have a wrapper library to make life even easier. The blipTV Ruby library is just that.

Let’s say you want to upload a video:

  require 'bliptv'

  client = BlipTV::Base.new

  options = {
    :username => "barack_obama",
    :password => "michellexoxo",
    :file => File.open('movie.mov'),
    :title => "Ordering Hamburgers in DC",
    :description => "I love this one burger joint, but the press keeps following me."

  }

  video = client.upload_video(options) #=> BlipTV::Video

The upload_video method call returns a BlipTV::Video object that you can play around with.

Or what if you wanted a list of all videos by a user? Also easy:

  require 'bliptv'

  client = BlipTV::Base.new

  video_list = client.find_all_videos_by_user("barack_obama")

find_all_videos_by_user will return a list of BlipTV::Video objects.

More usage coming soon.

Install

gem sources -a http://gems.github.com
sudo gem install kellysutton-bliptv
sudo gem install rest-client

Authors

Kelly Sutton (michael.k.sutton@gmail.com)

Contact

Kelly Sutton (michael.k.sutton@gmail.com)

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/kellysutton/bliptv