From 084d47badba6ee31c98288d41b733f6c397b3ab3 Mon Sep 17 00:00:00 2001 From: jinfengli Date: Fri, 23 Sep 2022 14:31:06 +0800 Subject: [PATCH] 添加接口调用任务暂停和启动 --- callmanage/数据推送和回调接口.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git "a/callmanage/\346\225\260\346\215\256\346\216\250\351\200\201\345\222\214\345\233\236\350\260\203\346\216\245\345\217\243.md" "b/callmanage/\346\225\260\346\215\256\346\216\250\351\200\201\345\222\214\345\233\236\350\260\203\346\216\245\345\217\243.md" index e879904..18e7c36 100644 --- "a/callmanage/\346\225\260\346\215\256\346\216\250\351\200\201\345\222\214\345\233\236\350\260\203\346\216\245\345\217\243.md" +++ "b/callmanage/\346\225\260\346\215\256\346\216\250\351\200\201\345\222\214\345\233\236\350\260\203\346\216\245\345\217\243.md" @@ -129,6 +129,55 @@ curl --location --request POST 'http://hw-gz59.heyqiwu.cn:60011/out/custom/callb ' ``` +#### 任务执行状态更新-暂停-启动 + +URL: {BaseUrl}/out/task/status/update + +METHOD: POST + +RequestHeaders: + +| key | description | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | +| Timestamp | 请求时的时间戳,毫秒级 | +| Authorization | 签名, 将 appSecret+":"+timestamp 字符串md5提取摘要 | +| App-Channel-Id | 渠道ID | + +RequestBody: + +```json +{ + "username":"admin", // 用户名 + "outputCallTaskName":"进峰测试sip方式留创网关", // 任务名 + "status": 2 // 0:立即执行; 2:停止 +} +``` + +ResponseBody: + +```json +{ + "code": 1, // 1:表示成功, 其他表示失败 + "msg": "成功", // 提示信息 + "data": null +} +``` + +Example + +``` +curl --location --request POST 'http://hw-gz59.heyqiwu.cn:60011/out/task/status/update' \ +--header 'Timestamp: 1663914548839' \ +--header 'Authorization: e02f9d3ddcc99acb54e9c581ce280f7d' \ +--header 'App-Channel-Id: qiwu-monitor-pro' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "username":"admin", + "outputCallTaskName":"进峰测试sip方式留创网关", + "status": 2 +}' +``` #### 回调标签 -- libgit2 0.27.1