POST /ccmessaging/v1/robot/feedbacksatisfaction
Description
Robot Response Satisfaction Evaluation
Method
POST
URI
https://Domain Name/apiaccess/ccmessaging/v1/robot/feedbacksatisfaction.For example,the domain name is service.besclouds.com.
Request
Seq. |
Name |
Type |
Mandatory |
Description |
---|---|---|---|---|
1 |
x-app-key |
string |
True |
appKey field, which indicates the user ID. |
2 |
Authorization |
string |
True |
Authentication field. The content format is Bearer+tokenByAKSK. The value of AccessToken in the return value of the API contains a space. |
3 |
ccmessaging-token |
string |
True |
ccmessign-token generated by the applyToken API |
Seq. |
Name |
Type |
Mandatory |
Description |
---|---|---|---|---|
1.1 |
feedback |
integer |
True |
Satisfaction with feedback. 1: satisfied; 0: dissatisfied |
1.2 |
feedbackContent |
string(64) |
False |
When the value is 0, the value cannot be empty. The maximum length is 64 bytes. |
1.3 |
from |
string |
True |
ID of the message sender. |
1.4 |
interIdx |
string |
True |
Number of interactions. The value is the interidx value returned by the last ODFS. |
Response
- Status code: 200
Seq. |
Name |
Type |
Mandatory |
Description |
---|---|---|---|---|
1.1 |
resultCode |
string |
True |
0:success 30000000008:feedbackContent can not be empty,when feedback is 0 10010000002:Access failed because of flow control 30010009999:request chat error 10010000001:Authentication failed |
1.2 |
resultDesc |
string |
False |
Failure Cause Description |
- Status code: 400
Incorrect request: Check the request path and parameters.
- Status code: 401
Unauthorized: 1. Check whether you have purchased related services. 2. Contact customer service personnel to check your account status.
- Status code: 404
Requested content not found: Please check the requested path.
- Status code: 500
Service failure: Check the values of the parameters in the request.
Error Code
None.
Message Example
- Scene description:Robot Response Satisfaction Evaluation
Request Header:
{ "ccmessaging-token":"eyJjcmVhdGVUaW1lIjoxNjIyNjI2Mjc3NDA4LCJ0ZW5hbnRJZCI6IjIwMjEwMjE5MzE5NiIsInJhbmRvbU51bWJlciI6IjZDRjEyOTE0OTQ3QzY1NzUwRUI4RDRBNENDODZEQTJGRTE4RjhBOTVERjcwMzA1QyIsIm1hcFNlcnZpY2UiOiJudWxsIiwidXNlck5hbWUiOiIyMzEyMzIxIiwibG9jYWxlIjoiemgiLCJ1c2VySWQiOiIxMTExMTExIiwiY2hhbm5lbElkIjoiMjAyMTAyMTkzMTk2ODY5NzA4In0%3D", "x-app-key":"ea5c29a3-ea45-4b79-a449-2a3dbeb4c32c", "Authorization":"Bearer 57042f85aeabd63562f2e8339968c4e0", "Content-Type":"application/json" }
Request Parameter:
{ "feedback":0, "feedbackContent":"dissatisfied", "from":"1111111", "interIdx":"2" }
Response Parameter:
{ "resultCode": "0", "resultDesc": "Send message to robot successfully" }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot