简要描述:

  • 我的通话记录接口

请求域名:

  • http://xx.com

请求URL:

POST/business/{公众号id}/plugin/OutboundSystem/getMyRecordList

参数:

参数名 是否必须 类型 说明
search.customer_name string 客户名称
search.customer_mobile string 客户手机号
search.call_status int 通话状态,0已拨打1已接通2未接通3拨打失败
search.start_date string 标准时间格式
search.end_date string 标准时间格式

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取我的通话记录成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "active_tel": "13827653085",
                "passive_tel": "18023807347",
                "middle_tel": "10000",
                "status": 2,
                "start_time": "2022-06-22 15:29:15",
                "end_time": "2022-06-22 15:29:28",
                "duration": 0,
                "reason": "",
                "download_url": "https://axb-media.oss-cn-beijing.aliyuncs.com/2022/07/14/18028072746_20220714091614030.wav",
                "local_path": null,
                "subid": "cdff7959-19b2-4095-9529-207c5fe77c91",
                "call_time": "13秒",
                "has_one_call": {
                    "subid": "cdff7959-19b2-4095-9529-207c5fe77c91",
                    "customer_id": 1,
                    "has_one_customer": {
                        "id": 1,
                        "name": "叶子9"
                    }
                }
            },
            {
                "id": 3,
                "active_tel": "13827653085",
                "passive_tel": "18676207191",
                "middle_tel": "10000",
                "status": 2,
                "start_time": "2022-07-13 14:11:29",
                "end_time": "2022-07-13 14:13:07",
                "duration": 0,
                "reason": "",
                "download_url": "",
                "local_path": null,
                "subid": "4555b1b6-9095-4116-99c9-d72ce99733be",
                "call_time": "98秒",
                "has_one_call": {
                    "subid": "4555b1b6-9095-4116-99c9-d72ce99733be",
                    "customer_id": 2,
                    "has_one_customer": {
                        "id": 2,
                        "name": "叶子1"
                    }
                }
            }
        ],
        "first_page_url": "http://yzhonshop.com/business/1/plugin/OutboundSystem/getMyRecordList?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://yzhonshop.com/business/1/plugin/OutboundSystem/getMyRecordList?page=1",
        "next_page_url": null,
        "path": "http://yzhonshop.com/business/1/plugin/OutboundSystem/getMyRecordList",
        "per_page": 15,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    }
}

分页数据[]

参数名 类型 说明
current_page int 当前页数
last_page int 最后一页的页数
per_page int 每页显示的数据量
total int 总数据量(可以作为门店数量)

返回参数说明:

参数名 类型 说明
id int 通话记录id
active_tel string 主叫号码
passive_tel string 被叫号码
middle_tel string 中间号
status int 通话状态,0已拨打1已接通2未接通3拨打失败
start_time string 通话开始时间
end_time string 通话结束时间
call_time int 通话时长
reason string 未接通原因
local_path string 下载链接,有值的话优先使用
download_url string 下载链接2,上面没有值就使用这个

返回参数has_one_customer[]:

参数名 类型 说明
id int 客户id
name string 客户名