Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby library to wrap the Encoding.com API
branch: master

This branch is even with simianarmy:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
VERSION
encoding-dot-com.gemspec

README.rdoc

encoding-dot-com

A client library for the encoding.com API.

Supports all the actions of the encoding.com API. Example usage:

require "encoding_dot_com"

# Create an interface to the encoding.com queue with your user id and secret
queue = EncodingDotCom::Queue.new(1234, "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"
queue.info(media_id)   # => 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.

Dependencies

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

  • Nokogiri

  • (Optionally) curb

TODOs

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

  • 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.

Authors

Copyright

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

Something went wrong with that request. Please try again.