API will return visitors list which are visiting site on that time.
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 |
anonymous_chat - Controller name |
m |
REQUIRED |
index - Controller method name |
token |
REQUIRED |
Application Access Token |
user_id |
REQUIRED |
Agent ID |
Response
{
"result": "success",
"language_version": 20171221061942,
"anonymous_users": [
{
"site_name": "Localhost",
"site_url": "localhost",
"id": "22",
"site_id": "8",
"operator_id": "5",
"chat_session_id": "0",
"name": "Vsitor",
"email": "",
"message": "Hi",
"profile_color": "#f16364",
"ip_address": "47.9.135.154",
"page_url": "http://localhost/chatbull/chatbox/",
"page_title": "Visitor Chatbox",
"meta_data": "[{\"page_title\":\"Visitor Chatbox\",\"page_url\":\"http:\\/\\/localhost\\/chatbull\\/chatbox\\/\"}]",
"latitude": "26.9167000",
"longitude": "75.8167000",
..........
}
]
}
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. |