文档
测试

普通型任务队列获取接口

GET
http://yaohe.baidukongjian.com/api/task/getNormalQueue

业务实现

1·根据设备识别码imei查询device_task表status为0(未发送)、task_type为0(普通类型)的任务队列: ``` SELECT dt.id, dt.task_type, dt.task_id, tn.app_id, ( CASE WHEN tn.app_id = 1 THEN "抖音" ELSE CASE WHEN tn.app_id = 2 THEN "百度贴吧" ELSE CASE WHEN tn.app_id = 3 THEN "抖音火山版" ELSE CASE WHEN tn.app_id = 4 THEN "今日头条" ELSE "错误类型" END END END END ) app_name, tn.keyword, tn.send_message, tn.create_time FROM device_task dt, task_normal tn where dt.task_id = tn.id and dt.status=0 and dt.task_type=0 and binary dt.imei = 1001 ```

请求参数

参数名
类型
描述
必填
imei
string
设备识别码
必填
aesKey
string
当前账号唯一key
必填

响应参数

参数名
类型
描述
必填
ret
arr
响应信息
必填
ok
string
响应成功
必填
其它响应信息
string
必填
noTask
string
无任务
必填
data_arr
arr
响应数据
必填
id
int
队列id
必填
taskType
int
任务类型id(0-普通,1-直播)
必填
taskId
int
任务id
必填
appId
int
app类型id(1-抖音,2-百度贴吧,3-抖音火山版,4-今日头条,5-微信,6-快手)
必填
appName
string
app名称
必填
keyword
string
关键字
必填
sendMessageList
arr
话术数组
必填
sendMessage
string
发送话术
必填
imgUrl
string
图文地址
必填
contentUrl
string
链接
必填
minTime
int
视频最短观看时长。单位 s
必填
maxTime
int
视频最长观看时长。单位 s
必填
createTime
string
创建时间
必填

说明 / 示例

``` { "ret": "ok", "data_arr": { "isEveryday": null, "startHour": null, "endHour": null, "beginTime": null, "overTime": null, "id": 2737, "taskType": 0, "taskId": 1001, "appId": 2, "appName": "百度贴吧", "keyword": "abcd", "sendMessageList": [ "abc", "d" ], "sendMessage": "abc^d", "imgUrl": null, "contentUrl": null, "imei": "867899020970700", "status": null, "sendQty": null, "minTime": 5, "maxTime": 60, "createTime": "2021-03-09 15:07:05" } } ```