Skip to content

integrum/encoding-dot-com

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • 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 © 2009 Enrich Social Productions Ltd. See LICENSE for details.

About

Ruby library to wrap the Encoding.com API

Resources

License

Stars

Watchers

Forks

Packages

No packages published