https://cmq-gz.publicXXX.tencenttdmq.com
http://gz.mqadapter.cmq.tencentyun.com
Parameter | Required | Type | Description |
queueName | Yes | String | Queue name, which must be unique under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter. |
msgBody.n | Yes | String | Message body, which represents a message in the batch. Currently, a batch can contain up to 16 messages. For ease of use, n can start from either 0 or 1, but the values must be consecutive. For example, two messages to be sent can be represented by msgBody.0, msgBody.1 or msgBody.1, msgBody.2 . Note: As the total size of all messages ( msgBody only, excluding message headers and other parameters) cannot exceed 64 KB, we recommend you plan the number of messages to be sent in advance. |
delaySeconds | No | Int | This field indicates how many seconds it should take for the messages to be visible after they are sent to the queue (this delay will take effect for a batch of messages, while many-to-many mapping is not supported). |
Parameter | Type | Description |
code | Int | |
message | String | Error message. |
requestId | String | Request ID generated by the server, which can be submitted to the backend for troubleshooting when an internal server error occurs. |
msgList | Array | List of unique IDs of the messages generated by the server. Each element indicates the information of one message. |
msgList
is defined as follows:Parameter | Type | Description |
msgId | String | Unique ID of the message generated by the server. |
https://domain/v2/index.php?Action=BatchSendMessage&queueName=test-queue-123&msgBody.1=helloworld1&msgBody.2=helloworld2&<<a href="">Common request parameters</a>>
{"code" : 0,"message" : "","requestId":"14534664555","msgList":[{"msgId":"123345346"},{"msgId":"456436346"}]}
Was this page helpful?