Section I - Get user session details API

I1 General Information

GET Method :

/api/v1/get_usersession_details/< user _id > with the following data:

Input:

Argument Mandatory Value
userId yes Numeric < Id of the user >
fromDate No dd-mm-yyyy
toDate No dd-mm-yyyy

I2 Sample Output

{
"status": "success",
"errorCode": 200,
"data": [
{
"acct_session_id": "8ab937443595622a4ed8f3014580737e",
"original_acct_session_id": "81000000",
"start_time": "2018-04-07 17:01:31",
"stop_time": "2018-04-07 17:01:52",
"ip_addr": "15.15.15.254",
"mac": "68:F7:28:C3:76:C9",
"session_timeout": "0",
"download_bytes": "274844",
"upload_bytes": "54852",
"nas_ip_address": "183.82.34.19",
"nas_mac": "4c:5e:0c:d6:06:a5",
"terminate_cause": "User-Request",
"browser": "",
"browser_version": null,
"operating_system": "",
"device_type": "",
"login_type": "pppoe",
"authtype": "mikrotik",
"is_mac_auth": false,
"override_bandwidth_level": false,
"upload_rate": "0",
"download_rate": "0"
}
 ] }

I3 - Get active user session details

GET Method :

/api/v1/get_active_usersession_details/< user _id > with the following data:

Input:

Argument Mandatory Value
userId yes Numeric < Id of the user >

Sample Output :

{
 “session details as json encoded”
}

I4 Disconnect user sessions

GET Method :

/api/v1/disconnect_user_sessions// with the following data:

Input :

Argument Mandatory Value
Type yes String keyword <“userId” or “username”>
Value yes Value of the above mentioned type

Sample Output :

{
"status":"success",
"errorCode" = 200,
"message":"sessions disconnected successfully"
}