{"id":18784912,"url":"https://github.com/ghostbar/transloadit-api","last_synced_at":"2025-04-13T12:33:32.607Z","repository":{"id":13583089,"uuid":"16275733","full_name":"ghostbar/transloadit-api","owner":"ghostbar","description":"A Transloadit API library for Node.js","archived":false,"fork":false,"pushed_at":"2019-10-18T23:27:55.000Z","size":1619,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T03:41:35.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ghostbar.github.io/transloadit-api/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghostbar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-27T10:22:23.000Z","updated_at":"2014-07-13T02:51:36.000Z","dependencies_parsed_at":"2022-08-30T21:12:26.315Z","dependency_job_id":null,"html_url":"https://github.com/ghostbar/transloadit-api","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Ftransloadit-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Ftransloadit-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Ftransloadit-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostbar%2Ftransloadit-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostbar","download_url":"https://codeload.github.com/ghostbar/transloadit-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248714734,"owners_count":21149958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T20:44:26.493Z","updated_at":"2025-04-13T12:33:32.148Z","avatar_url":"https://github.com/ghostbar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"transloadit-api [![Build Status](https://secure.travis-ci.org/ghostbar/transloadit-api.png)](http://travis-ci.org/ghostbar/transloadit-api) [![Code Climate](https://codeclimate.com/github/ghostbar/transloadit-api/badges/gpa.svg)](https://codeclimate.com/github/ghostbar/transloadit-api)\n===============\n\nA Node.js library for Transloadit's API.\n\nIt has an interface for each of the available actions for Transloadit's API: assemblies, notifications and templates.\n\nAssemblies Interface\n--------------------\n\n### Brief\n\n    var tlib = require('transloadit-api');\n    var assembly = new tlib.assembly(credentials);\n\n    assembly.post(files, params, callback);\n\n### assembly.post\n\nThe `post` method is used to upload files and it can take a single fileBlob or an array of them, then a JSON with the params accepted by Transloadit and finally a callback as the third argument.\n\n    assembly.post(fileBlob, paramsAcceptedByTransloadit, function (err, response) {\n      // Do whatever you want\n    });\n\nQuick-usage\n-----------\n\n    var config = {\n      key: '...',\n      'secret': '...'\n    };\n    var signature = require('transloadit-api').Signature(config);\n\n    var params = {\n      steps: {\n        encode: {\n          robot: \"/video/encode\"\n        }\n      }\n    };\n\n    var x = signature.create(params);\n\n    /* now x has a signature for the given parameters */\n    /* doing `console.log(x) would give */\n    {\n      signature: \"fec703ccbe36b942c90d17f64b71268ed4f5f512\",\n      params: {\n        auth: {\n            expires: \"2010/10/19 09:01:20+00:00\",\n            key: \"2b0c45611f6440dfb64611e872ec3211\"\n        },\n        steps: {\n            encode: {\n              robot: \"/video/encode\"\n            }\n        }\n      }\n    }\n\n    /* uploading files or assemblies */\n    var files = {\n      'random.png': {\n        name: 'Randomness.png',\n        path: '/path/to/file'\n      }\n    };\n\n    // files can be `req.files` directly too\n    var upload = require('transloadit-api').Assembly(config);\n    upload.post(files, params, function (err, res) {\n      /* ... */\n    });\n\n\nAuthor\n------\n© 2014, Jose Luis Rivas `\u003cme@ghostbar.co\u003e`\n\nLicense\n-------\nThe files are licensed under the MIT terms.\n\nThe image on `test/test-image.jpg` is released under the license [Creative Commons Attribution 4.0](http://creativecommons.org/licenses/by/4.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostbar%2Ftransloadit-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostbar%2Ftransloadit-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostbar%2Ftransloadit-api/lists"}