话单拉取API

  接口说明

        易企通话单接口之————话单拉取接口

  接口名 - 1

pci_pull/getCallByDateTime

  接口实例 - 1

http://api.maxvox.com.cn/api/pci_pull/getCallByDateTime?userkey=50143fdc59&start_time=2012-08-01 00:00:00&end_time=2012-08-01 00:02:00&sign=53a89bf433454834f5c99977bdead2b7s

  请求参数表 - 1
参数 必选 参数类型 说明
userkey yes string 用户id
start_time yes string 话单开始时间
end_time yes string 话单结束时间
sign yes string 签名认证(具体察看易企通签名认证说明)
  接口名 - 2

pci_pull/getCallByDateTimeTel

  接口实例 - 2

http://api.maxvox.com.cn/api/pci_pull/getCallByDateTimeTel ?userkey=50143fdc59&tel=4008676666&start_time=2012-08-01 00:00:00&end_time=2012-08-01 00:02:00&sign=53a89bf433454834f5c99977bdead2b7

  请求参数表 - 2
参数 必选 参数类型 说明
userkey yes string 用户id
tel yes string 400号码
start_time yes string 话单开始时间
end_time yes string 话单结束时间
sign yes string 签名认证(具体察看易企通签名认证说明)
  接口名 - 3

pci_pull/getCallByDateTimeTelExt

  接口实例 - 3

http://api.maxvox.com.cn/api/pci_pull/getCallByDateTimeTelExt?userkey=50143fdc59&tel=4008676666&ext=22&start_time=2012-08-01 00:00:00&end_time=2012-08-01 00:02:00&sign=53a89bf433454834f5c99977bdead2b7s

  请求参数表 - 3
参数 必选 参数类型 说明
userkey yes string 用户id
tel yes string 400号码
ext yes string 分机号码
start_time yes string 话单开始时间
end_time yes string 话单结束时间
sign yes string 签名认证(具体察看易企通签名认证说明)
  返回结果

{
  "code":"200", "result":
    {
	   "tel":"4006123456",    %400电话号码
	   "ext":"10001",         %400分机号
	   "call_passid":"089836604391",  %透传号码
	   "caller_id":"089836604391",    %主叫号码
	   "callee_id":"01085236727",     %被叫号码
	   "start_time":"1292478083",     %呼叫时间
	   "answer_time":"1292478083",    %大号摘机时间,对于分机为转拨分机时间
	   "ext_time":"1292478083",       %分机应答时间,大号为空
	   "answered_time":"1292478083",  %分机摘机时间,大号为空
	   "answering_time":"1292478083", %通话开始时间,大号同answer_time,分机同answered_time
	   "end_time":"1292478083",       %通话结束时间
	   "call_duration":"23",          %通话时长(实际的通话时间!)
	   "call_fee":"12",               %话费
	   "province":"北京",             %主叫地区
	   "city":"朝阳",
	   "tape_url":"http://123.147.190.44/867300001/luyin/867300001-1317013898775100.wav",
	   "state":"1"					  %接听状态  1-已接听 0-未接听
       },
       {...}
    }
}

  返回结果说明

        code, 所有正确返回結果都是200,错误返回結果请察看错误結果说明
        result, 此次操作的返回結果
        tel, 400电话
        ext, 400分机号码
        callees, 被叫分机列表