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 in the specified queue by sending a message.

amqp/list

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

HTTP method: POST

Parameters:

Parameter Required Type Description
action ✅ string Method identifier: list

Request example

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

amqp/status

Triggers a status check in the specified queue by sending a message.

HTTP method: POST

Parameters:

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

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": "7bc29eb23fb1b879b21fce509597f07c"
}
Error examples
{
"code": -1,
"message": "empty queue in request"
}
question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×