Logout From Server

API will logout user(agent) from server to show as offline and stop push notification on that device.

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

POST Params

Parameters Mandatory Description
[Request parameters]
d REQUIRED api - Controller directory name
c REQUIRED users - Controller name
m REQUIRED logout - Controller method name
token REQUIRED Application Access Token

GET Params

Parameters Mandatory Description
[Request parameters]
user_id REQUIRED Agent ID
mac_address REQUIRED Mac Address of Device where app is installed

Response


{
    "result": "success",
    "language_version": 20171221061942,
    "message": "Logged-out successfully!"
}

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.