This endpoint allows you to push and pop messages onto our internal work queue

Collection /queue-job

This endpoint allows you to push and pop messages onto our internal work queue.
This not a true REST GET as it's not idempotent and will change the state of the queue, but if you're not bothered then neither are we.

Notes


  • These endpoints are protected with an API key, SYSTEM ONLY

GET /queue-job

Pop a job off of our work queue

item value
Access system
Full url https://api.buto.tv/v2/queue-job
verb GET

POST /queue-job

Push a job onto our work queue ready to process

item value
Access system
Full url https://api.buto.tv/v2/queue-job
verb POST
params int:priority:1 for Low or 10 for High mixed:data:json encoded array of job params

Example

url_encoded=`php -r 'echo urlencode(json_encode(["media_id"=>"233dF"]));'`
data="priority=10&job_name=TransformVideo&data=${url_encoded}";

curl -X POST -u ${api_key}:x --data-binary "${data}" ${api_url}/v2/queue-job

returns

["7c5b27af-d2b4-481d-937b-97d77c9282cd"]