An Official Viddler Ruby Gem
On the heels of the release of PHPViddler version 2, I am super excited to announce our brand new Viddler gem, viddler-ruby. All of you Ruby lovers out there can get your hands on it by running gem install viddler-ruby, and you’ll now be able to call V2 API methods really easily:
require 'rubygems'
require 'viddler-ruby'
# Create the client and authenticate it
viddler = Viddler::Client.new('YOUR API KEY')
viddler.authenticate! 'USERNAME', 'PASSWORD'
# Simple API for calling GET, POST, and uploading a file:
viddler.get 'viddler.playlists.getByUser', :user => 'kyleslat'
viddler.post 'viddler.playlists.create', :name => 'My super awesome playlist'
viddler.upload File.open('mymovie.avi'), :title => 'Ruby Upload', :description => "I love Ruby!", :tags => "ruby, viddler"
For more information, including how to integrate this into your Ruby on Rails application, check out the GitHub project. I’ve got a lot of plans to make this wrapper even better, so definitely keep checking in for updates!
Subscribe
Colin Devroe says
December 15, 2010 - 10:05 amThis gem is a gem.
Nick Hance says
December 15, 2010 - 3:51 pmThis looks great Kyle!
I can't wait to use it!