Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This project is now hosted at : http://github.com/novelys/easy-vimeo

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.textile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 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.

Something went wrong with that request. Please try again.