This project is now hosted at : http://github.com/novelys/easy-vimeo
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.document
.gitignore
LICENSE
README.textile
Rakefile
VERSION
easy-vimeo.gemspec

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.