cURL
We would not recommend to use the cURL integration for production, but it can be convenient for a quick test when you don't have an SDK lying around.
Install
brew install curl jq || sudo apt install curl jq
Example
# Prerequisites: brew install curl jq || sudo apt install curl jq
# To avoid tampering, use Signature Authentication
echo '{
"template_id": "YOUR_TEMPLATE_ID",
"auth": {
"key": "YOUR_TRANSLOADIT_KEY"
},
"steps": {}
}' | curl \
--request POST \
--form 'params=<-' \
--form myfile1=@./joe-gardner-149699.jpg \
https://api2.transloadit.com/assemblies | jq
Related blog posts
- How to start downloading files with cURL January 25, 2024
- Hashing files with cURL: a developer's guide November 26, 2024