This project is now hosted at : http://github.com/novelys/easy-vimeo
Ruby
Latest commit b35006d Dec 8, 2009 @nicolasblanco changes hosted link.
Permalink
Failed to load latest commit information.
lib typo. Dec 8, 2009
spec Switch to new Vimeo API. Dec 8, 2009
.document first commit May 7, 2009
.gitignore first commit May 7, 2009
LICENSE Updates LICENSE May 7, 2009
README.textile changes hosted link. Dec 8, 2009
Rakefile Switch to new Vimeo API. Dec 8, 2009
VERSION Updates README and VERSION. Dec 8, 2009
easy-vimeo.gemspec updates gemspec May 11, 2009

README.textile

IMPORTANT !

This project has been renamed nv-vimeo and is now hosted at : http://github.com/novelys/easy-vimeo

Thanks !

EasyVimeo

EasyVimeo aims to be a very easy and Ruby wrapper around the Vimeo API.

With EasyVimeo, you can upload a video file to the Vimeo website and set its basic properties in a few lines of code.

What’s new ?

0.3.0 : updates to new Ruby Vimeo API with some cleanup. We don’t need curl anymore because the Ruby Vimeo API now uses HTTPClient to upload.

Example

Send a video in just a few lines of code…


  v = Vimeo::Easy.new :api_key => VIMEO_API_KEY, :secret_key => VIMEO_SECRET_KEY, :auth_token => VIMEO_AUTH_TOKEN
  v.title = "Ma great video"
  v.description = "Great cool video"
  v.tags = "youpi, super, cool"
  v.privacy = :anybody
  
  v.file = "/Users/nicolas/test.mov"
  v.save

Or just get the attributes from an existing video…


  v = Vimeo::Easy.find 2052244, :api_key => VIMEO_API_KEY, :secret_key => VIMEO_SECRET_KEY

Other interesting methods…


  v.available? # => returns true if the video is currenly available on Vimeo (uploaded & transcoded)
  v.destroy    # => destroy the video
  v.reload     # => reload the attributes

TODO

Add some error management.

And that’s all for now ;). Thanks!

Copyright

Copyright © 2009 Novelys & Promopixel. See LICENSE for details.

Written by Nicolas Blanco.