Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple Ruby API for the Bakery
Ruby
branch: master

This branch is 3 commits ahead, 4 commits behind wistia:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
MIT-LICENSE
README
Rakefile
init.rb
install.rb
uninstall.rb

README

Bakery API
==================
Ruby API for the Bakery. See http://doc.unraw.net.


This is currently in the form of a Rails plugin. Drop it into
vendor/plugins and you're off to the races.

Configure it like so:

Bakery::Configuration.configure!(
  :api_scheme => 'https',
  :api_host => 'account.unraw.net',
  :api_user => 'user',
  :api_password => 'password',
  :api_access_key => 'abc123',
  :http_delivery_host => 'account.media.unraw.net',
  :https_delivery_host => 'account.media.unraw.net')


Then you can do stuff like get info about an asset:

  media = Bakery::Media.find(123)
  media.extension #=> 'mov'
  media.status #=> 1 (Bakery::Media::PROCESSING)
  media.progress #=> 0.58


Or extract and resize a jpeg still from a video asset:

Bakery::Derivative.create(
  :media_id => 123,
  :extension => 'jpg',
  :image_resize => '640',
  :video_still_time => 15
)



=====================
Copyright (c) 2009 Brendan Schwartz, released under the MIT license
Something went wrong with that request. Please try again.