UNPKG

zencoder

Version:

Node integration library for Zencoder

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