Giter VIP home page Giter VIP logo

gem-encoding-dot-com's Introduction

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.

gem-encoding-dot-com's People

Contributors

alan avatar kdonovan avatar knaveofdiamonds avatar levent avatar okiess avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.