Get Server Time

API will return server time, which will use in shorting of chat.

Resource URL

https://Server Node Environment/index.php

Example : https://api.yourdomain.com/index.php

Resource Information

Parameters Values
Resource Format JSON
Method GET
Requires authentication? No

Request

GET Params

Parameters Mandatory Description
[Request parameters]
d REQUIRED api - Controller directory name
c REQUIRED chat - Controller name
m REQUIRED get_server_time - Controller method name
api_version REQUIRED API version witch must match constant API_VERSION defined in "application/config/constant.php" file.

Response


{
    "result": "success",
    "milliseconds": 1527229067823,
    "language_version" 20171221061942
}

Messages returned

HTTP STATUS CODE Description MESSAGE BODY
200 Successfully Return Return Json data.
200 Error Return {"result": "failed", "error": "Your Chatbull web version is ahead of your android application. Please update your desktop application to the latest to make it work."} or {"result": "failed", "error": "It seems like that your Chatbull web app is running on an old version 1.0.0 . You must need to update the web version to latest to make this application work."}
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.