Skip to content

Instantly share code, notes, and snippets.

@dbackeus
Created June 18, 2011 15:53
Show Gist options
  • Select an option

  • Save dbackeus/1033209 to your computer and use it in GitHub Desktop.

Select an option

Save dbackeus/1033209 to your computer and use it in GitHub Desktop.
Streamio RubyGem Example
require "streamio"
# Configure it
Streamio.configure do |config|
config.username = "your_account_name"
config.password = "your_api_private_key"
end
# Create a Video
video = Streamio::Video.create :file => File.new("path/to/an/awesome.movie")
# Update the Video
video.title = "Awesome!"
video.tags = ["Awesome", "HD"]
video.save
# Find your videos
videos = Streamio::Video.all
# Query your videos
videos = Streamio::Video.all(:tags => ["HD"], :limit => 5, :order => "plays.desc")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment