在 BLiP 中,一条计划消息有效,但同时有许多消息无效
In BLiP, one schedule message works but many message at the same time does not
我正在使用 BLiP,我想在与用户的最后一次交互 5 分钟后安排 3 条消息,一个呼叫有效,而其他呼叫无效。
POST https://msging.net/commands HTTP/1.1
Content-Type: application/json
Authorization: Key {YOUR_TOKEN}
{
"id": "1",
"to": "postmaster@scheduler.msging.net",
"method": "set",
"uri": "/schedules",
"type": "application/vnd.iris.schedule+json",
"resource": {
"message": {
"id": "ad19adf8-f5ec-4fff-8aeb-2e7ebe9f7a67",
"to": "destination@0mn.io",
"type": "text/plain",
"content": "Scheduling test."
},
"when": "2016-07-25T17:50:00.000Z",
"name": "New Schedule"
}
}
如果您的 id
参数是 hard-coded/constant,如果在短时间内发送了多个请求,它将在 BLiP 的 API 中抛出异常
将其更改为随机生成的 GUID
或在调用之间插入延迟以修复它。
我正在使用 BLiP,我想在与用户的最后一次交互 5 分钟后安排 3 条消息,一个呼叫有效,而其他呼叫无效。
POST https://msging.net/commands HTTP/1.1
Content-Type: application/json
Authorization: Key {YOUR_TOKEN}
{
"id": "1",
"to": "postmaster@scheduler.msging.net",
"method": "set",
"uri": "/schedules",
"type": "application/vnd.iris.schedule+json",
"resource": {
"message": {
"id": "ad19adf8-f5ec-4fff-8aeb-2e7ebe9f7a67",
"to": "destination@0mn.io",
"type": "text/plain",
"content": "Scheduling test."
},
"when": "2016-07-25T17:50:00.000Z",
"name": "New Schedule"
}
}
如果您的 id
参数是 hard-coded/constant,如果在短时间内发送了多个请求,它将在 BLiP 的 API 中抛出异常
将其更改为随机生成的 GUID
或在调用之间插入延迟以修复它。