Chatbot 在BLiP中,一条调度消息起作用,但同时有多条消息不起作用
我正在使用BLiP,我想在和用户最后一次交互5分钟后安排3条消息,一个呼叫有效,其他呼叫无效Chatbot 在BLiP中,一条调度消息起作用,但同时有多条消息不起作用,chatbot,Chatbot,我正在使用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": "/schedul
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
参数是硬编码/常量,那么如果在短时间内发送了多个请求,它将在BLiP的API中引发异常
将其更改为随机生成的
GUID
,或者在调用之间插入一个延迟来修复它。如果id
参数是硬编码/常量,如果在短时间内发送了多个请求,它将在BLiP的API中引发异常
将其更改为随机生成的GUID
,或者在调用之间插入延迟来修复它