Viddler

Daily features, announcements, and much more!

An Official Viddler Ruby Gem

Published December 15, 2010 by Colin Devroe in Announcements,Development

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!

2 Comments Share on Twitter

2 Comments

RSS feed for comments on this post.

  1. Colin Devroe says

    December 15, 2010 - 10:05 am

    This gem is a gem.


  2. Nick Hance says

    December 15, 2010 - 3:51 pm

    This looks great Kyle!

    I can't wait to use it!


Sorry, the comment form is closed at this time.