Find file
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (38 sloc) 1.91 KB


A client library for the API.

Supports all the actions of the API. Example usage:

require "encoding_dot_com"

# Create an interface to the queue with your user id and secret
queue =, "secret")

# Create one or more output formats
format = EncodingDotCom::Format.create("output" => "flv")

# Get an media item processed. You can pass multiple output formats in a hash.
media_id = queue.add_and_process("http://source/url/here", "http://destination/url/here" => format)

queue.status(media_id) # => returns a string like "Waiting for encoder" or "Finished"   # => returns information about an item in the queue

See the API documentation for more details - Queue is a good starting place.

By default the library uses Curb for http - there is also a Net/HTTP adapter and it is easy to write your own.


  • Ruby 1.9.2+ - For older Rubies use the ruby-187 branch

  • Nokogiri

  • (Optionally) curb


  • Flesh out validations to ensure that bad data does not get submitted to

  • Full status method

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don't break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.



Copyright © 2009 Enrich Social Productions Ltd. See LICENSE for details.