v8/contact-center/docs/Chatopera_cc_v1.postman_col...

1591 lines
33 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{
"info": {
"_postman_id": "3aaf2976-1ea3-494c-95e6-1aebe008ed83",
"name": "Chatopera_cc_v1",
"description": "Chatopera Contact Center API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "获得Token",
"event": [
{
"listen": "test",
"script": {
"id": "ffda8497-cda5-4b0e-9548-ee0b9c1fb286",
"exec": [
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
" pm.environment.set(\"AUTH\", pm.response.text());",
"})"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/tokens?username=admin&password=admin1234",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"tokens"
],
"query": [
{
"key": "username",
"value": "admin"
},
{
"key": "password",
"value": "admin1234"
}
]
}
},
"response": []
},
{
"name": "获得登录用户",
"request": {
"method": "GET",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
}
],
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/user",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"user"
]
}
},
"response": []
},
{
"name": "启动呼叫计划",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"execute\", \"dialplanId\": \"402882516556801d016556db24e908de\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callout/dialplan",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callout",
"dialplan"
]
}
},
"response": []
},
{
"name": "暂停呼叫计划",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"pause\", \"dialplanId\": \"402882516546e777016546eeb00c0452\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callout/dialplan",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callout",
"dialplan"
]
}
},
"response": []
},
{
"name": "删除呼叫计划",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"delete\", \"dialplanId\": \"402882516556801d016556db24e908de\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callout/dialplan",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callout",
"dialplan"
]
}
},
"response": []
},
{
"name": "通话记录查询",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"query\", \"fromdate\": \"2018-08-21\", \"enddate\": \"2018-08-20\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callout/records?p=1&ps=20",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callout",
"records"
],
"query": [
{
"key": "p",
"value": "1"
},
{
"key": "ps",
"value": "20"
}
]
}
},
"response": []
},
{
"name": "获取语音渠道坐席监控数据",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"status\", \"channel\": \"bxzq\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callout/monitor",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callout",
"monitor"
]
}
},
"response": []
},
{
"name": "获取文件URL",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"wav\", \"file\": \"2018-08-22/63187a63-f2c8-4463-85a6-db5d49851945.wav\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callout/records",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callout",
"records"
]
}
},
"response": []
},
{
"name": "外呼日报查询",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"agg\", \"datestr\": \"2018-08-22\", \"channel\": \"bxzq\", \"direction\": \"out\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callout/records",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callout",
"records"
]
}
},
"response": []
},
{
"name": "坐席报表查询",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"audit\",\n \"fromdate\": \"2018-08-22\",\n \"channel\": \"bxzq\",\n \"enddate\": \"2018-08-24\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callout/records",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callout",
"records"
]
}
},
"response": []
},
{
"name": "坐席监控",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"status\",\n \"channel\": \"bxzq\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callout/monitor",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callout",
"monitor"
]
}
},
"response": []
},
{
"name": "坐席监听",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"dropin\",\n \"channel\": \"bxzq\",\n \"callid\": \"2523f480-9e16-4a7a-9c3d-318ea7624109\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callout/monitor",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callout",
"monitor"
]
}
},
"response": []
},
{
"name": "\b联系人笔记创建",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"create\", \"category\": \"外呼\", \"content\": \"xx\", \"contactid\": \"25d61fe78db54bec95c9d0f405d0b20b\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/contacts/notes",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"contacts",
"notes"
]
}
},
"response": []
},
{
"name": "\b联系人笔记详情",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"detail\", \"id\": \"xxx\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/contacts/notes",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"contacts",
"notes"
]
}
},
"response": []
},
{
"name": "\b联系人笔记获取联系人所有笔记",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"fetch\", \"contactid\": \"xxx\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/contacts/notes",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"contacts",
"notes"
]
}
},
"response": []
},
{
"name": "机器人客服:创建",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"create\",\n \"primaryLanguage\": \"zh_CN\",\n \"snsid\": \"104eac\",\n \"name\": \"小C\",\n \"baseUrl\": \"http://lhc-dev:8003\",\n \"description\": \"描述\",\n \"fallback\": \"我不理解。\",\n \"welcome\": \"你好\",\n \"workmode\": \"机器人客服优先\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/chatbot",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"chatbot"
]
}
},
"response": []
},
{
"name": "机器人客服:查询",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"fetch\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/chatbot",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"chatbot"
]
}
},
"response": []
},
{
"name": "机器人客服:更新",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"update\",\n \"id\": \"54509c828fcd4d0e9709a975a04bf190\",\n \"workmode\": \"\",\n \"enabled\": false,\n \"description\": \"描述\",\n \"fallback\": \"我不知道。\",\n \"welcome\": \"你好!\",\n \"name\": \"cc\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/chatbot",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"chatbot"
]
}
},
"response": []
},
{
"name": "机器人客服:删除",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"delete\",\n \"id\": \"fdf372d7ffb0456f8bd7fdfc1a054beb\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/chatbot",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"chatbot"
]
}
},
"response": []
},
{
"name": "机器人客服:启用",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"enable\",\n \"id\": \"f24e8282b1074ad192e7408c18b1f942\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/chatbot",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"chatbot"
]
}
},
"response": []
},
{
"name": "机器人客服:禁用",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"disable\",\n \"id\": \"eb53580ddbe3473bb112ade4eeeb3b45\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/chatbot",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"chatbot"
]
}
},
"response": []
},
{
"name": "联系人:创建联系人类型",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\"ops\": \"com.dic.contacts.ckind::create\", \"name\": \"美国\"}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/sysdic",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"sysdic"
]
}
},
"response": []
},
{
"name": "数据字典:查询",
"request": {
"method": "GET",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
}
],
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/sysdic?code=com.dic.contacts.ckind",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"sysdic"
],
"query": [
{
"key": "code",
"value": "com.dic.contacts.ckind"
}
]
}
},
"response": []
},
{
"name": "W4L: 创建联系人",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"create\",\n \"ckind\": \"402882516bff5a8c016bff6e645c058d\",\n \"username\": \"foo3\",\n \"uid\": \"xxxuid3\",\n \"sid\": \"xxxxssid\",\n \"cid\": \"cidxx\",\n \"system_name\": \"system_name\",\n \"address\": \"xxxaddress\",\n \"company_name\": \"company_name\",\n \"memo\": \"memo\",\n \"skypeid\": \"skypeid\",\n \"gender\": \"1\",\n \"email\": \"foo@cc.com\",\n \"phone\": \"1526262121\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/wl/contacts",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"wl",
"contacts"
]
}
},
"response": []
},
{
"name": "坐席:获得服务中的访客集合",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"inserv11\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/agentuser",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"agentuser"
]
}
},
"response": [
{
"name": "坐席:获得服务中的访客集合",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"inserv\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/agentuser",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"agentuser"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Set-Cookie",
"value": "JSESSIONID=1526168D9E2EC773C826E9A1C3BE6A82; Path=/; HttpOnly"
},
{
"key": "X-Application-Context",
"value": "application:8035"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "POST, GET, OPTIONS, DELETE, PUT"
},
{
"key": "Access-Control-Max-Age",
"value": "3600"
},
{
"key": "Access-Control-Allow-Headers",
"value": "x-requested-with,accept,authorization,content-type"
},
{
"key": "Access-Control-Allow-Credentials",
"value": "true"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
},
{
"key": "Content-Length",
"value": "217"
},
{
"key": "Date",
"value": "Thu, 19 Sep 2019 12:53:38 GMT"
}
],
"cookie": [],
"body": "{\n \"rc\": 0,\n \"data\": [\n {\n \"id\": \"402882516d493fd6016d4946a1e8061b\",\n \"userid\": \"119e8b29fcef6b387ed7a44595c7b597\",\n \"status\": \"inservice\",\n \"agentno\": \"4028cac3614cd2f901614cf8be1f0324\",\n \"channel\": \"webim\",\n \"nickname\": \"yxiang@Chatopera\"\n }\n ]\n}"
}
]
},
{
"name": "坐席:撤退当前坐席",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"withdraw\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/agentuser",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"agentuser"
]
}
},
"response": [
{
"name": "坐席:撤退当前坐席",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"withdraw\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/agentuser",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"agentuser"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Set-Cookie",
"value": "JSESSIONID=925EDECC5F3B9D58D43C5A605F992A74; Path=/; HttpOnly"
},
{
"key": "X-Application-Context",
"value": "application:8035"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "POST, GET, OPTIONS, DELETE, PUT"
},
{
"key": "Access-Control-Max-Age",
"value": "3600"
},
{
"key": "Access-Control-Allow-Headers",
"value": "x-requested-with,accept,authorization,content-type"
},
{
"key": "Access-Control-Allow-Credentials",
"value": "true"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
},
{
"key": "Content-Length",
"value": "8"
},
{
"key": "Date",
"value": "Thu, 19 Sep 2019 14:13:46 GMT"
}
],
"cookie": [],
"body": "{\n \"rc\": 0\n}"
}
]
},
{
"name": "呼叫中心:创建账号,语音平台列表",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"my-pbxlist\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/callcenter",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"callcenter"
]
}
},
"response": [
{
"name": "坐席:撤退当前坐席",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"withdraw\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/agentuser",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"agentuser"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Set-Cookie",
"value": "JSESSIONID=925EDECC5F3B9D58D43C5A605F992A74; Path=/; HttpOnly"
},
{
"key": "X-Application-Context",
"value": "application:8035"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "POST, GET, OPTIONS, DELETE, PUT"
},
{
"key": "Access-Control-Max-Age",
"value": "3600"
},
{
"key": "Access-Control-Allow-Headers",
"value": "x-requested-with,accept,authorization,content-type"
},
{
"key": "Access-Control-Allow-Credentials",
"value": "true"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
},
{
"key": "Content-Length",
"value": "8"
},
{
"key": "Date",
"value": "Thu, 19 Sep 2019 14:13:46 GMT"
}
],
"cookie": [],
"body": "{\n \"rc\": 0\n}"
}
]
},
{
"name": "系统用户:创建账号",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"create\",\n \"username\": \"foo1\",\n \"uname\": \"foo1\",\n \"email\": \"foo1@cc.com\",\n \"password\": \"admin1234\",\n \"mobile\": \"15800000000\",\n \"agent\": \"1\",\n \"callcenter\": \"1\",\n \"pbxhostid\": \"402885e76f992509016f992e91720021\",\n \"extensionid\": \"402885e76f992509016f992ee14c0027\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/user",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"user"
]
}
},
"response": [
{
"name": "系统用户:创建账号",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"create\",\n \"username\": \"foo1\",\n \"uname\": \"foo1\",\n \"email\": \"foo1@cc.com\",\n \"password\": \"admin1234\",\n \"mobile\": \"15800000000\",\n \"agent\": \"1\",\n \"callcenter\": \"1\",\n \"pbxhostid\": \"402885e76f992509016f992e91720021\",\n \"extensionid\": \"402885e76f992509016f992ee14c0027\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/user",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"user"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "X-Application-Context",
"value": "application,git:dev:8035"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "POST, GET, OPTIONS, DELETE, PUT"
},
{
"key": "Access-Control-Max-Age",
"value": "3600"
},
{
"key": "Access-Control-Allow-Headers",
"value": "x-requested-with,accept,authorization,content-type"
},
{
"key": "Access-Control-Allow-Credentials",
"value": "true"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
},
{
"key": "Content-Length",
"value": "34"
},
{
"key": "Date",
"value": "Sun, 12 Jan 2020 12:07:48 GMT"
}
],
"cookie": [],
"body": "{\n \"rc\": 0,\n \"data\": \"new_user_success\"\n}"
}
]
},
{
"name": "系统用户:删除账号",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"delete\",\n \"id\": \"402885e76f99b9ec016f99bd81f20002\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/user",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"user"
]
}
},
"response": [
{
"name": "系统用户:删除账号",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"delete\",\n \"id\": \"402885e76f9987e7016f9991dcaf0002\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/user",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"user"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "X-Application-Context",
"value": "application,git:dev:8035"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "POST, GET, OPTIONS, DELETE, PUT"
},
{
"key": "Access-Control-Max-Age",
"value": "3600"
},
{
"key": "Access-Control-Allow-Headers",
"value": "x-requested-with,accept,authorization,content-type"
},
{
"key": "Access-Control-Allow-Credentials",
"value": "true"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
},
{
"key": "Content-Length",
"value": "21"
},
{
"key": "Date",
"value": "Sun, 12 Jan 2020 12:07:33 GMT"
}
],
"cookie": [],
"body": "{\n \"rc\": 0,\n \"msg\": \"done\"\n}"
}
]
},
{
"name": "系统用户:更新账号",
"request": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"update\",\n \"id\": \"402885e76f99b9ec016f99c032090007\",\n \"username\": \"foo1\",\n \"uname\": \"foo1\",\n \"email\": \"foo1@cc.com\",\n \"password\": \"admin1234\",\n \"mobile\": \"15800000011\",\n \"agent\": \"1\",\n \"callcenter\": \"1\",\n \"pbxhostid\": \"402885e76f992509016f992e91720021\",\n \"extensionid\": \"402885e76f992509016f992ee14c0027\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/user",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"user"
]
}
},
"response": [
{
"name": "系统用户:更新账号",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "authorization",
"value": "{{AUTH}}"
},
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ops\": \"update\",\n \"id\": \"402885e76f99a660016f99a72f4a0002\",\n \"username\": \"foo1\",\n \"uname\": \"foo1\",\n \"email\": \"foo1@cc.com\",\n \"password\": \"admin1234\",\n \"mobile\": \"15800000011\",\n \"agent\": \"1\",\n \"callcenter\": \"1\",\n \"pbxhostid\": \"402885e76f992509016f992e91720021\",\n \"extensionid\": \"402885e76f992509016f992ee14c0027\"\n}"
},
"url": {
"raw": "http://{{IP}}:{{PORT}}/api/user",
"protocol": "http",
"host": [
"{{IP}}"
],
"port": "{{PORT}}",
"path": [
"api",
"user"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "X-Application-Context",
"value": "application,git:dev:8035"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "POST, GET, OPTIONS, DELETE, PUT"
},
{
"key": "Access-Control-Max-Age",
"value": "3600"
},
{
"key": "Access-Control-Allow-Headers",
"value": "x-requested-with,accept,authorization,content-type"
},
{
"key": "Access-Control-Allow-Credentials",
"value": "true"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
},
{
"key": "Content-Length",
"value": "35"
},
{
"key": "Date",
"value": "Sun, 12 Jan 2020 12:20:31 GMT"
}
],
"cookie": [],
"body": "{\n \"rc\": 0,\n \"data\": \"edit_user_success\"\n}"
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "ee82d425-91be-4e85-b3da-7fbfd5d0da19",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "26cdde89-40b3-4b7f-85ad-09652137888c",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
}