Skip to content

amqp.php

AMQP queue management module for storing, listing, and monitoring asynchronous jobs.

API Methods

Method Action Description
list get list of jobs count Returns the total number of jobs currently in the AMQP queue system.
status check queue status and trigger job Triggers a status check for the specified queue by storing and sending a message.

amqp/list

Returns the total number of jobs currently in the AMQP queue system.

HTTP method: GET

Parameters:

Parameter Required Type Description
action ✅ string Method identifier: list
- - - No other parameter

Request example

curl -s "https://invapi.hostkey.com/amqp.php" -X GET \
--data "action=list"
Success response example
{
"result": "OK",
"report": 125
}
Error examples
{
"code": -1,
"message": "Error description"
}

amqp/status

Triggers a status check for the specified queue by storing and sending a message.

HTTP method: POST

Parameters:

Parameter Required Type Description
action ✅ string Method identifier: status
queue ✅ string Name of the queue to check status for.

Request example

curl -s "https://invapi.hostkey.com/amqp.php" -X POST \
--data "action=status" \
--data "queue=VALUE"
Success response example
{
"result": "OK",
"action": "status",
"queue": "default_queue",
"callback_key": "7bc29eb23b1b879b21fce509597f07c"
}
Error examples
{
"code": -1,
"message": "empty queue in request"
}
question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×