// Our mission at Coconut is to make cloud video transcoding simple
const coconut = new Coconut.Client('api-key');
coconut.notification = {
'url': 'https://app/api/coconut/webhook'
};
coconut.storage = {
'service': 'ipfs_pinata',
'credentials': { 'api_key': 'xxx', 'secret_api_key': 'xxx' }
};
coconut.Job.create({
'input': { 'url': 'https://cdn/path/file.mp4' },
'outputs': {
'mp4:1080p': { 'path': '/1080p.mp4' }
}
}, function(job, err) {
...
});