API will accept offline request and mark as replied. It will return conversations.
Resource URL
https://Server Node Environment/index.php
Example : https://api.yourdomain.com/index.php
Request
GET Params
| Parameters |
Mandatory |
Description |
| [Request parameters] |
|
|
| d |
REQUIRED |
api - Controller directory name |
| c |
REQUIRED |
chat - Controller name |
| m |
REQUIRED |
get_offline_request - Controller method name |
| token |
REQUIRED |
Application Access Token |
| request_id |
REQUIRED |
Offline Request ID |
Response
{
"result": "success",
"language_version": 20171221061942,
"conversations": [
{
"id": "24",
"request_id": "22",
"message": "I am a new customer.",
"message_status": "unread",
"created_at": "2018-05-26 07:30:33",
"sender_id": "132",
"name": "Site Visitor",
"email": "site-visitor@pkpwssib.com",
"profile_color": "#f06292",
"profile_pic": "",
"profile_picture": null
}
]
}
Messages returned
| HTTP STATUS CODE |
Description |
MESSAGE BODY |
| 200 |
Successfully Return |
Return Json data. |
| 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. |