UNPKG

zencoder

Version:

Node integration library for Zencoder

15 lines (14 loc) 494 B
module.exports = function(client) { var route = '/outputs' var Output = { details: function(id, callback) { if (!id) { var error = { errors: [ 'Output ID required' ] }; return callback(error) } return client.get(route + '/' + id, callback); }, progress: function(id, callback) { if (!id) { var error = { errors: [ 'Output ID required' ] }; return callback(error) } return client.get(route + '/' + id + '/progress', callback) } } return Output; }