“业务记录”的版本间的差异

来自uucall
跳转至: 导航搜索
删除业务记录字段
CRM列表查询
第404行: 第404行:
 
其中 ivr模板json字符串 形式如下:<br />
 
其中 ivr模板json字符串 形式如下:<br />
 
<br />
 
<br />
{\"id\":65921,\"uid\":1225,\"createTime\":1450755525,\"rootid\":66822,\"batch\":\"IVR65921\",\"state\":0,\"variables\":\"[IvrVarPair(leftvar:${password}, rigntvar:密码), IvrVarPair(leftvar:${num1}, rigntvar:变量1), IvrVarPair(leftvar:${one}, rigntvar:数据库数据1), IvrVarPair(leftvar:${two}, rigntvar:数据库数据2)]\"}]
+
{"result":"SUCCESS","code":100,"msg":"success"}
 
<br />
 
<br />
  

2016年4月26日 (二) 21:26的版本

获取业务记录字段

  • 说明
方法: GET
前缀:http://ip:port/uucall_restapi/rest/
路径: /crm/field/custom
参数校验:无
  • 示例
GET /crm/field/custom HTTP/1.1
Host:192.168.2.1:2888
content-length: 139
Accept:application/xml;
Content-Type:application/xml;charset=utf-8;
appid:XXXX
timestamp:2016-03-11 00:00:00
Authorization:ZmY4MDgwODEzYzM3ZGE1MzAxM2M4MDRmODA3MjAwN2M6MjAxMzAyMDExNTABCDE


  • 参数列表
类型 参数名 描述 是否必填 数据类型 默认值
输入参数 uid 企业帐号ID true Long
输入参数 crmid CRM编号 true String


  • 结构响应

其中相应结果HTTP Code为200的string为json格式字符串,具体字段和字段值形式如下:

Result Data
success list<Field>
failed 失败描述


  • 返回值格式

application/json
其中 ivr模板json字符串 形式如下:

{"result":"SUCCESS","data":[{"crmid":20042,"fieldType":1,"fieldValListSize":0,"id":951,"isChoose":1,"isEdit":1,"isShow":1,"lastEditTime":1450688842,"lengthlimit":255,"name":"标题","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":1,"size":0,"subType":0,"tableField":"title","type":2,"uid":1225,"variable":"title"}],"code":100,"msg":"success"}

修改业务记录字段

  • 说明
方法: PUT
前缀:http://ip:port/uucall_restapi/rest/
路径: /crm/field/custom/{fieldid}
参数校验:无
  • 示例
PUT /crm/field/custom/1231 HTTP/1.1
Host:192.168.2.1:2888
content-length: 139
Accept:application/xml;
Content-Type:application/xml;charset=utf-8;
appid:XXXX
timestamp:2016-03-11 00:00:00
Authorization:ZmY4MDgwODEzYzM3ZGE1MzAxM2M4MDRmODA3MjAwN2M6MjAxMzAyMDExNTABCDE
{ "name":"2备注",
"variable":"g44422g",
"isShow":"true",
"isChoose":"true",
"fieldType":"txt",
"size":"normal",
"limit":"25",
"values":"备注备注"
}


  • 参数列表
类型 参数名 描述 是否必填 数据类型 默认值
输入参数 uid 企业帐号ID true Long
输入参数 crmid CRM编号 true Long
输入参数 fieldid 字段编号 true Long
输入参数 name 字段名称 true string
输入参数 variable 变量名称 false string
输入参数 isChoose 是否筛选 false string
输入参数 isShow 是否显示 false string
输入参数 fieldType 字段类型 false string
输入参数 size 文本大小 false string
输入参数 limit 文本字段长度限制 false string
输入参数 subType 字段子类型 false string
输入参数 values 字段值 false string


  • 结构响应

其中相应结果HTTP Code为200的string为json格式字符串,具体字段和字段值形式如下:

Result Data
success 成功描述
failed 失败描述


  • 返回值格式

application/json
其中 ivr模板json字符串 形式如下:

{"result":"SUCCESS","code":100,"msg":"success"}

新增业务记录字段

  • 说明
方法: POST
前缀:http://ip:port/uucall_restapi/rest/
路径: /crm/field/custom
参数校验:无
  • 示例
POST /crm/field/custom HTTP/1.1
Host:192.168.2.1:2888
content-length: 139
Accept:application/xml;
Content-Type:application/xml;charset=utf-8;
appid:XXXX
timestamp:2016-03-11 00:00:00
Authorization:ZmY4MDgwODEzYzM3ZGE1MzAxM2M4MDRmODA3MjAwN2M6MjAxMzAyMDExNTABCDE


  • 参数列表
类型 参数名 描述 是否必填 数据类型 默认值
输入参数 uid 企业帐号ID true Long
输入参数 crmid CRM编号 true Long
输入参数 fieldid 字段编号 true Long
输入参数 name 字段名称 true string
输入参数 variable 变量名称 false string
输入参数 isChoose 是否筛选 false string
输入参数 isShow 是否显示 false string
输入参数 fieldType 字段类型 false txt,radio,chkbox,time
输入参数 size 文本大小 false normal,long,big
输入参数 limit 文本字段长度限制 false 10~99
输入参数 subType 字段子类型 false 单选:select,a-radio,b-radio 多选:a-chkbox,b-chkbox 时间组件:date,date-range,time-set
输入参数 values 字段值 false string


  • 结构响应

其中相应结果HTTP Code为200的string为json格式字符串,具体字段和字段值形式如下:

Result Data
success 成功描述
failed 失败描述


  • 返回值格式

application/json
其中 ivr模板json字符串 形式如下:

{"result":"SUCCESS","code":100,"msg":"success"}

删除业务记录字段

  • 说明
方法: DELETE
前缀:http://ip:port/uucall_restapi/rest/
路径: /crm/field/custom
参数校验:无
  • 示例
DELETE /crm/field/custom HTTP/1.1
Host:192.168.2.1:2888
content-length: 139
Accept:application/xml;
Content-Type:application/xml;charset=utf-8;
appid:XXXX
timestamp:2016-03-11 00:00:00
Authorization:ZmY4MDgwODEzYzM3ZGE1MzAxM2M4MDRmODA3MjAwN2M6MjAxMzAyMDExNTABCDE


  • 参数列表
类型 参数名 描述 是否必填 数据类型 默认值
输入参数 fieldid 字段编号 true int64
输入参数 uid 企业帐号ID true int64
输入参数 crmid CRM编号 true int64


  • 结构响应

其中相应结果HTTP Code为200的string为json格式字符串,具体字段和字段值形式如下:

Result Data
success 成功描述
failed 失败描述


  • 返回值格式

application/json
其中 ivr模板json字符串 形式如下:

{"result":"SUCCESS","code":100,"msg":"success"}

获取业务记录

  • 说明
方法: GET
前缀:http://ip:port/uucall_restapi/rest/
路径: /crm/business/{bid}
参数校验:无
  • 示例
GET /crm/business/101 HTTP/1.1
Host:192.168.2.1:2888
content-length: 139
Accept:application/xml;
Content-Type:application/xml;charset=utf-8;
appid:XXXX
timestamp:2016-03-11 00:00:00
Authorization:ZmY4MDgwODEzYzM3ZGE1MzAxM2M4MDRmODA3MjAwN2M6MjAxMzAyMDExNTABCDE


  • 参数列表
类型 参数名 描述 是否必填 数据类型 默认值
输入参数 uid 企业帐号ID true Long
输入参数 crmid CRM编号 true Long
输入参数 cid 客户资料编号 true Long
输入参数 startdate 开始日期 yyyy-MM-dd false String
输入参数 starttime 开始时间 HH:mm:ss false String
输入参数 enddate 结束日期 yyyy-MM-dd false String
输入参数 endtime 结束时间 HH:mm:ss false String
输入参数 phone 电话号码 false String
输入参数 createAdmin 创建人 false String
输入参数 lastEditAdmin 最后编辑人 false String

|}

  • 结构响应

其中相应结果HTTP Code为200的string为json格式字符串,具体字段和字段值形式如下:

Result Data
success Business
failed 失败描述


  • 返回值格式

application/json
其中 ivr模板json字符串 形式如下:

{"result":"SUCCESS","data":[{"crmid":20042,"fieldType":1,"fieldValListSize":0,"id":951,"isChoose":1,"isEdit":1,"isShow":1,"lastEditTime":1450688842,"lengthlimit":255,"name":"标题","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":1,"size":0,"subType":0,"tableField":"title","type":2,"uid":1225,"variable":"title"},{"crmid":20042,"fieldType":1,"fieldValListSize":0,"id":952,"isChoose":1,"isEdit":1,"isShow":1,"lastEditTime":1450688842,"lengthlimit":255,"name":"提交时间","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":1,"size":0,"subType":0,"tableField":"acceptTime","type":2,"uid":1225,"variable":"acceptTime"},{"crmid":20042,"fieldType":1,"fieldValListSize":0,"id":953,"isChoose":1,"isEdit":1,"isShow":1,"lastEditTime":1450688842,"lengthlimit":255,"name":"提交人","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":1,"size":0,"subType":0,"tableField":"acceptAdmin","type":2,"uid":1225,"variable":"acceptAdmin"},{"crmid":20042,"fieldType":3,"fieldValListSize":0,"fieldValues":"客户饭|符合规定饭|家好多个饭","id":983,"isChoose":1,"isEdit":0,"isShow":1,"lastEditTime":1457692645,"lengthlimit":12,"name":"文本框","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":1,"subType":1,"tableField":"property1","type":2,"uid":1225,"variable":"TXT"},{"crmid":20042,"fieldType":3,"fieldValListSize":0,"fieldValues":"1|2|3","id":985,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1456823606,"lengthlimit":0,"name":"多项","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":2,"tableField":"property3","type":2,"uid":1225,"variable":"andmore"},{"crmid":20042,"fieldType":1,"fieldValListSize":0,"fieldValues":"a|b|c","id":1042,"isChoose":2,"isEdit":0,"isShow":2,"lastEditTime":1457937866,"lengthlimit":10,"name":"测试字段10","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":1,"subType":1,"tableField":"property7","type":2,"uid":1225,"variable":"ces10"},{"crmid":20042,"fieldType":1,"fieldValListSize":0,"id":1045,"isChoose":2,"isEdit":0,"isShow":2,"lastEditTime":1457937887,"lengthlimit":13,"name":"测试字段13","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":1,"subType":0,"tableField":"property10","type":2,"uid":1225,"variable":"cs13"},{"crmid":20042,"fieldType":2,"fieldValListSize":0,"fieldValues":"a|b|c","id":1047,"isChoose":2,"isEdit":0,"isShow":2,"lastEditTime":1457937871,"lengthlimit":15,"name":"测试字段15","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":1,"subType":2,"tableField":"property12","type":2,"uid":1225,"variable":"cs15"},{"crmid":20042,"fieldType":5,"fieldValListSize":0,"fieldValues":"ghj|fsds|werwer","id":1052,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1457692593,"lengthlimit":20,"name":"测试字段20","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":1,"subType":2,"tableField":"property17","type":2,"uid":1225,"variable":"cs20"},{"crmid":20042,"fieldType":5,"fieldValListSize":0,"id":1058,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1457692651,"lengthlimit":0,"name":"啥风格","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":3,"tableField":"property8","type":2,"uid":1225,"variable":"jkhuj"},{"crmid":20042,"fieldType":1,"fieldValListSize":0,"id":1059,"isChoose":2,"isEdit":0,"isShow":2,"lastEditTime":1457937893,"lengthlimit":12,"name":"010101","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":1,"subType":0,"tableField":"property6","type":2,"uid":1225,"variable":"0101"},{"crmid":20042,"fieldType":2,"fieldValListSize":0,"fieldValues":"1|2|3|4","id":1060,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1456823584,"lengthlimit":0,"name":"020202","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":3,"tableField":"property9","type":2,"uid":1225,"variable":"0202"},{"crmid":20042,"fieldType":5,"fieldValListSize":0,"id":1100,"isChoose":1,"isEdit":0,"isShow":1,"lastEditTime":1456891119,"lengthlimit":25,"name":"3时间","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":3,"subType":3,"tableField":"property15","type":2,"uid":1225,"variable":"qed2q"},{"crmid":20042,"fieldType":1,"fieldValListSize":0,"id":1101,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1456821869,"lengthlimit":99,"name":"备注16","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":3,"subType":0,"tableField":"property16","type":2,"uid":1225,"variable":"a3wrf"},{"crmid":20042,"fieldType":2,"fieldValListSize":0,"fieldValues":"1/2/3","id":1103,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1456822329,"lengthlimit":0,"name":"单2","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":2,"tableField":"property11","type":2,"uid":1225,"variable":"xfn9"},{"crmid":20042,"fieldType":2,"fieldValListSize":0,"fieldValues":"1|2|3","id":1104,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1456822409,"lengthlimit":0,"name":"单3","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":3,"tableField":"property14","type":2,"uid":1225,"variable":"xffn9"},{"crmid":20042,"fieldType":3,"fieldValListSize":0,"fieldValues":"1|2|3","id":1105,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1456822658,"lengthlimit":0,"name":"多1","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":1,"tableField":"property18","type":2,"uid":1225,"variable":"xv"},{"crmid":20042,"fieldType":5,"fieldValListSize":0,"id":1108,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1456984020,"lengthlimit":0,"name":"请问","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":3,"tableField":"property2","type":2,"uid":1225,"variable":"xsa4f3v"},{"crmid":20042,"fieldType":5,"fieldValListSize":0,"id":1109,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1456823698,"lengthlimit":0,"name":"4854212454","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":1,"tableField":"property4","type":2,"uid":1225,"variable":"v"},{"crmid":20042,"fieldType":1,"fieldValListSize":0,"id":1127,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1457685462,"lengthlimit":12,"name":"哈哈","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":false,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":1,"subType":0,"tableField":"property5","type":2,"uid":1225,"variable":"hah"},{"crmid":20042,"fieldType":2,"fieldValListSize":0,"fieldValues":"1|2|3","id":1128,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1457685453,"lengthlimit":0,"name":"1","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":1,"tableField":"property13","type":2,"uid":1225,"variable":"1"},{"crmid":20042,"fieldType":3,"fieldValListSize":0,"fieldValues":"1|2|3","id":1129,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1457685443,"lengthlimit":0,"name":"2","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":1,"tableField":"property19","type":2,"uid":1225,"variable":"2"},{"crmid":20042,"fieldType":2,"fieldValListSize":0,"fieldValues":"1|2|3","id":1133,"isChoose":1,"isEdit":0,"isShow":2,"lastEditTime":1457685436,"lengthlimit":0,"name":"4","setCrmid":true,"setFieldType":true,"setFieldValList":false,"setFieldValues":true,"setId":true,"setIsChoose":true,"setIsEdit":true,"setIsShow":true,"setLastEditTime":true,"setLengthlimit":true,"setName":true,"setShowType":true,"setSize":true,"setSubType":true,"setTableField":true,"setType":true,"setUid":true,"setVariable":true,"showType":2,"size":0,"subType":2,"tableField":"property20","type":2,"uid":1225,"variable":"4"}],"code":100,"msg":"success"}

新增业务记录

  • 说明
方法: POST
前缀:http://ip:port/uucall_restapi/rest/
路径: /crm/business
参数校验:无
  • 示例
POST /crm/business HTTP/1.1
Host:192.168.2.1:2888
content-length: 139
Accept:application/xml;
Content-Type:application/xml;charset=utf-8;
appid:XXXX
timestamp:2016-03-11 00:00:00
Authorization:ZmY4MDgwODEzYzM3ZGE1MzAxM2M4MDRmODA3MjAwN2M6MjAxMzAyMDExNTABCDE


  • 参数列表
类型 参数名 描述 是否必填 数据类型 默认值
输入参数 uid 企业帐号ID true Long
输入参数 crmid CRM编号 true Long
输入参数 cid 客户资料编号 true Long
输入参数 phoneid 通话记录编号 true String
输入参数 title 标题 false string
输入参数 property1~property40 自定义字段 false string


  • 结构响应

其中相应结果HTTP Code为200的string为json格式字符串,具体字段和字段值形式如下:

Result Data
success 成功描述
failed 失败描述


  • 返回值格式

application/json
其中 ivr模板json字符串 形式如下:

{\"id\":65921,\"uid\":1225,\"createTime\":1450755525,\"rootid\":66822,\"batch\":\"IVR65921\",\"state\":0,\"variables\":\"[IvrVarPair(leftvar:${password}, rigntvar:密码), IvrVarPair(leftvar:${num1}, rigntvar:变量1), IvrVarPair(leftvar:${one}, rigntvar:数据库数据1), IvrVarPair(leftvar:${two}, rigntvar:数据库数据2)]\"}]

修改业务记录

CRM列表查询

  • 说明
方法: PUT
前缀:http://ip:port/uucall_restapi/rest/
路径: /crm/custom/{cid}
参数校验:无
  • 示例
PUT /crm/custom/{bid} HTTP/1.1
Host:192.168.2.1:2888
content-length: 139
Accept:application/xml;
Content-Type:application/xml;charset=utf-8;
appid:XXXX
timestamp:2016-03-11 00:00:00
Authorization:ZmY4MDgwODEzYzM3ZGE1MzAxM2M4MDRmODA3MjAwN2M6MjAxMzAyMDExNTABCDE


  • 参数列表
类型 参数名 描述 是否必填 数据类型 默认值
输入参数 uid 企业帐号ID true Long
输入参数 crmid CRM编号 true Long
输入参数 cid 客户资料编号 true Long
输入参数 phoneid 通话记录编号 true String
输入参数 title 标题 false string
输入参数 property1~property40 自定义字段 false string


  • 结构响应

其中相应结果HTTP Code为200的string为json格式字符串,具体字段和字段值形式如下:

Result Data
success 成功描述
failed 失败描述


  • 返回值格式

application/json
其中 ivr模板json字符串 形式如下:

{"result":"SUCCESS","code":100,"msg":"success"}

删除业务记录

  • 说明
方法: DELETE
前缀:http://ip:port/uucall_restapi/rest/
路径: /crm/custom/{bid}
参数校验:无
  • 示例
DELETE /crm/custom/101 HTTP/1.1
Host:192.168.2.1:2888
content-length: 139
Accept:application/xml;
Content-Type:application/xml;charset=utf-8;
appid:XXXX
timestamp:2016-03-11 00:00:00
Authorization:ZmY4MDgwODEzYzM3ZGE1MzAxM2M4MDRmODA3MjAwN2M6MjAxMzAyMDExNTABCDE


  • 参数列表
类型 参数名 描述 是否必填 数据类型 默认值
输入参数 uid 企业帐号ID true Long
输入参数 bid 业务记录编号 true Long


  • 结构响应

其中相应结果HTTP Code为200的string为json格式字符串,具体字段和字段值形式如下:

Result Data
success 成功描述
failed 失败描述


  • 返回值格式

application/json
其中 ivr模板json字符串 形式如下:

{\"id\":65921,\"uid\":1225,\"createTime\":1450755525,\"rootid\":66822,\"batch\":\"IVR65921\",\"state\":0,\"variables\":\"[IvrVarPair(leftvar:${password}, rigntvar:密码), IvrVarPair(leftvar:${num1}, rigntvar:变量1), IvrVarPair(leftvar:${one}, rigntvar:数据库数据1), IvrVarPair(leftvar:${two}, rigntvar:数据库数据2)]\"}]