API will send visitor feedback for current session to connected Agent.
Resource URL
https://Server Node Environment/index.php
Example : https://api.yourdomain.com/index.php
Resource Information
Parameters |
Values |
Resource Format |
JSON |
Method |
POST |
Requires authentication? |
Yes |
Request
GET Params
Parameters |
Mandatory |
Description |
[Request parameters] |
|
|
d |
REQUIRED |
visitors - Controller directory name |
c |
REQUIRED |
chat - Controller name |
m |
REQUIRED |
send_feedback - Controller method name |
Headers
Parameters |
Mandatory |
Description |
Accesstoken |
REQUIRED |
Access Token |
POST Params
Parameters |
Mandatory |
Description |
[Request parameters] |
|
|
rating |
REQUIRED |
1 - 5 |
feedback_text |
REQUIRED |
feedback message |
feedback_by |
REQUIRED |
Sender ID |
feedback_to |
REQUIRED |
Agent ID |
chat_session_id |
REQUIRED |
Chat Session ID |
sort_order |
REQUIRED |
Time in milliseconds based on Server Time |
Response
{
"error": "",
"result": "success",
"redirect_to": "http://localhost/chatbull/chatbox/",
"show_feedback_form": 0
}
Messages returned
HTTP STATUS CODE |
Description |
MESSAGE BODY |
200 |
Successfully Return |
Return data in JSON format. |
200 |
Authorization Error |
{"result":"failed","error":"Invalid access token or Token has been expired."} |
400 |
Request is malformed |
{"error": "invalid_request", "error_description": "description"} |
403 |
Forbidden |
Directory access is forbidden. |
404 |
Resource Not found |
The page you requested was not found. |