根据 customer_id 获取单条呼叫记录

请求方式:POST

请求地址:/api.php?r=authorization-check/call-record-push

请求参数:form-data

参数 类型 必填 说明
token string 认证码
customer_id int 客户编号

返回值:

{
    "statusCode": 1,
    "message": "Success",
    "info": "{\"asrid\":322,\"batchid\":\"146\",\"phone\":[\"13888888888\",\"16888888888\"],\"callback_url\":\"www.ytcall.net\",\"define\":\"自定义参数\",\"call_record\":{\"dst\":\"13888888888\",\"call_date\":\"2019-02-28 17:28:22\",\"call_result_number\":0,\"path\":\"\",\"billsec\":\"0.00\",\"unique_id\":\"6_8500002_9a2c03d32d8840b52bc3b13983afdc00\"},\"info\":\"\"}"
}
参数 类型 说明
statusCode int 状态码,1为正常,0代表错误
message string 错误信息,成功时为 Success ,错误时会以中文方式显示错误原因
info string 呼叫记录json数据

获取AI机器人所有呼叫记录

请求方式:POST

请求地址:/api.php?r=authorization-check/get-call-records

请求参数:form-data

参数 类型 必填 说明
token string 认证码
asrid int 机器人任务编号id
type string 类型(today今日 history历史)
start_time datetime 开始时间,格式 2021-10-13 15:08:26
end_time datetime 开始时间,格式 2021-10-13 15:08:26
page int 页码数
page_size int 每页显示条数

返回值:

{
    "statusCode": 1, //状态码(1:成功 0:失败)
    "message": "Success", //提示信息
    "info": {
        "page": 1, //页码数
        "page_size": 15, //每页显示数
        "total_page": 1, //总页数
        "total_count": "2", //总条数
        "info": [{
            "id": "12259322", //数据id
            "customer_id": "3", //客户id
            "call_result_number": "1", //呼叫结果 0:未接通 1:已接通
            "call_date": "2019-09-26 15:40:42", //呼叫时间
            "dst": "13888888888", //手机号
            "unique_id": "6_9000001_42329bc4226554c462364ca7bf6aaabb",
            "path": "http://yt.robot.com/recordings/2019-09-26/20190926154044_123_123.wav", //完整通话录音
            "billsec": "5.00", //通话时长
            "scores": "60", //评分,可对应意向等级
            "record_detail": [ //通话详情
                {
                    "msg": "喂,您好", //聊天内容
                    "record": "/home/robot_sound_ai66/root66100_yanshi/1.wav",
                    "user": "0", //0:机器人   1:客户
                    "uniqueid": "6_9000001_42329bc4226554c462364ca7bf6aaabb",
                    "create_time": "2019-02-26 09:20:45", //聊天时间
                    "path": "http://yt.robot.com" //聊天短录音路径
                }
            ]
        }]
    }
}
参数 类型 说明
statusCode int 状态码,1为正常,0代表错误
message string 错误信息,成功时为 Success ,错误时会以中文方式显示错误原因
info array 呼叫记录数组
Copyright © 言通网络 2022 all right reserved,powered by Gitbook该文件修订时间: 2024-12-25 10:36:22

results matching ""

    No results matching ""