查询满意度调查等级
接口功能
查询满意度调查等级
接口原型
| 请求方法 | POST | |
|---|---|---|
| 请求URL | https://ip:port/service-cloud/rest/webadapter/v1/webadapterfacade/querySatisfyMode | 其中,ip:port为对外暴露的nslb的ip和port |
| 参数名称 | 选取原则 | 参数类型 | 默认值 | 说明 |
|---|---|---|---|---|
| Content-Type | 必选 | String | 无 | 固定填 application/json; charset=UTF-8。 |
| Cookie | 必选 | String | 无 | 集成页面的时候,ccmessaging通过请求响应,将ccmessaging-token写到集成页面浏览器的Cookie中。单独调用时需确保请求头的Cookie中含有ccmessaging-token=xxx,xxx为ccmessaging-token值。 |
请求参数
无。
响应参数
| 参数名称 | 选取原则 | 参数类型 | 说明 |
|---|---|---|---|
| resultCode | 必选 | String | 接口响应码,0:成功 |
| resultDesc | 必选 | String | 接口描述 |
| surveyType | 可选 | String | 满意度调查渠道类型 |
| satisfactionLevel | 可选 | List | 满意度等级,satisfactionLevel详情见表4 |
接口示例
- 请求示例
POST /service-cloud/rest/webadapter/v1/webadapterfacade/querySatisfyMode host: 10.10.10.2:18446 connection: Keep-Alive x-forwarded-for: 10.10.10.3, 10.10.10.4 x-real-ip: 10.10.10.5 content-length: 401 remote-host: 10.10.10.6 user-agent: java/socket content-type: application/json; charset=utf-8 cookie: JSESSION*****#*#*****3 ccmessaging-token:******** accept: */*
- 响应示例
{ "resultCode":"0", "resultDesc":"query satisfaction success!", "surveyType": "WEB", "satisfactionLevel": [ { "satisfactionLevelDesc": "很不满意", "satisfactionLevelKey": "1" }, { "satisfactionLevelDesc": "不满意", "satisfactionLevelKey": "2" }, { "satisfactionLevelDesc": "一般", "satisfactionLevelKey": "3" }, { "satisfactionLevelDesc": "满意", "satisfactionLevelKey": "4" }, { "satisfactionLevelDesc": "很满意", "satisfactionLevelKey": "5" } ] }