- Submit API for Video/File Segments URL
- Wait for Slots
- Server Downloads URL
- Server Merges Them
- Server Post Back the Target URL
- Server Deletes the Files/Data in 48 Hours
The API:
API to Merge Files/Videos Segments
Submit URLs to merge API:
$curl -X POST -s "https://slowapi.com/api/merger/" -d "s=URL1\nURL2\nURL3\n"
This will return on sucess the following:
{
"id": "5",
"ip": "146.200.108.X",
"code": "mtcSCZbrQ2FGJtNnMdyKZ5Eh96UApB9O",
"status": "https://slowapi.com/api/merger/query/?id=5&code=mtcSCZbrQ2FGJtNnMdyKZ5Eh96UApB9O"
}
Query the status URL:
{
"status": "ok",
"expiry": "2021-01-18 17:18:47",
"url": "https://slowapi.com/api/merger/data/5_mtcSCZbrQ2FGJtNnMdyKZ5Eh96UApB9O.ts",
"code": "mtcSCZbrQ2FGJtNnMdyKZ5Eh96UApB9O",
"id": "5",
"ip": "146.200.108.X"
}
If the files have not yet been merged, the status will be “pending”.