0.0.4 • Published 10 years ago

node-transloadit v0.0.4

Weekly downloads
23
License
-
Repository
github
Last release
10 years ago

Overview

This is a Node.js client for the Transloadit service, a cloud transcoder for images, video and other content.

Before you get started you'll want to enable API authentication.

Installation

npm install node-transloadit

API

var transloadit = require('node-transloadit');

var client = new transloadit('AUTH_KEY', 'AUTH_SECRET');

client.send(params, ok_callback, fail_callback);

Example

var transloadit = require('node-transloadit');

var client = new transloadit('AUTH_KEY', 'AUTH_SECRET');
var params = {
    steps: {
        ':original': {
            robot: '/http/import',
            url: 'http://example.com/file.mov'
        }
    },
    template_id: 'your_template_id_here'
};

client.send(params, function(ok) {
    // success callback [optional]
    console.log('Success: ' + JSON.stringify(ok));
}, function(err) {
    // error callback [optional]
    console.log('Error: ' + JSON.stringify(err));
});

Authors

  • Geoff Wilson (gmwils@gmail.com)
0.0.4

10 years ago

0.0.3

11 years ago

0.0.2

12 years ago

0.0.1

12 years ago