Guest Manager System Calls
Guest Manager System API calls comprise of the login, Logout, and all the system calls. These API calls help guest users log in to the GuestManager server and access its services. Using the system calls, one can retrieve the information like session data, timezone list, server config information, system capabilities, and server version.
Log Into Guest Manager
Description | Logs in to the Guest Manager. |
---|---|
Who Can Execute? | Any user can execute this API call. |
Syntax |
GET <Base_URL>/site/keyLogin?key_id=<value>&key_value=<value>
|
Sample code |
GET https://analyticsdemo.mojonetworks.com/api/v1.14/site/keyLogin?key_id=KEY-ATN165-19&key_value=8cc48dd84bcf1a70d4e187c1b6c5f2a8
|
Request Body | This API call does not require any request body parameters. |
Response Body | If the API call is successful, the HTTP response status is 200. The response body contains the success message and is in the application/json format. The below list describes the contents of the response body.
A sample response is as follows: { "success": true, "message": "Login Successfull", "data": { "other": { "access_token": "12otji6slt3bvame64rog416q7" } } } |
Log Out of Guest Manager
Description | Logs out from the Guest Manager and end the corresponding session. |
---|---|
Who Can Execute? | Any user can execute this API call. |
Syntax |
GET <Base_URL>/site/logout
|
Sample code |
GET https://analyticsdemo.mojonetworks.com/api/v1.14/site/logout
|
Request Body | This API call does not require any request body parameters. |
Response Body | If the API call is successful, the HTTP response status is 200. The response body contains the success message and is in the application/json format. The below list describes the contents of the response body:
A sample response is as follows: { "success": true, "message": "Logout Successfull", "data": { "errorCode": 200, "message": "Logout Successfull" } } |
Get Session Data
Description | Returns the details of the current session for a logged in user. |
---|---|
Who Can Execute? | Any user can execute this API call. |
Syntax |
GET <Base_URL>/site/sessiondata
|
Sample code |
GET https://analyticsdemo.mojonetworks.com/api/v1.14/site/sessiondata
|
Request Body | This API call does not require any request body parameters. |
Response Body | If the API call is successful, the session details are returned in the response body. The response is in the application/json format. The below list describes the contents of the response body:
A sample response is as follows: { "success": true, "message": "Record Found", "data": { "session_data": { "username": "Doc team", "rid": 2, "display_name": " ", "email": null, "time_zone": "UTC", "lockout_policy": 0, "cas_login": false, "kvs_login": true, "hide_pii_admin": false, "hide_pii_wifi_users": false, "hide_credentials": false, "cname": "ATN165", "analytics_last_sync_time": 1516885248 } } } |
Get Timezones
Description | Returns the list of time zones supported by Guest Manager. |
---|---|
Who Can Execute? | Any user can execute this API call. |
Syntax |
GET <Base_URL>/site/timezonelist
|
Sample code |
GET https://analyticsdemo.mojonetworks.com/api/v1.14/site/timezonelist
|
Request Body | This API call does not require any request body parameters. |
Response Body | If the API call is successful, the session details are returned in the response body. The response is in the application/json format. The below list describes the contents of the response body.
A sample response is as follows: { "success": true, "message": "Record Found", "data": { "totalCount": 593, "timezones": [ { "timezone_name": "Etc/GMT+12", "timezone_display_name": "Etc/GMT+12", "timezone_offset": "-12:00" }, { "timezone_name": "Pacific/Pago_Pago", "timezone_display_name": "Pacific/Pago_Pago", "timezone_offset": "-11:00" }, { "timezone_name": "Etc/GMT+11", "timezone_display_name": "Etc/GMT+11", "timezone_offset": "-11:00" }, . . . . . . . . . { "timezone_name": "Pacific/Kiritimati", "timezone_display_name": "Pacific/Kiritimati", "timezone_offset": "+14:00" } ] } } |
Get Server Config Information
Description | Provides the details of the configuration parameters for the Guest Manager. |
---|---|
Who Can Execute? | Any user can execute this API call. |
Syntax |
GET <Base_URL>/site
|
Sample code |
GET https://analyticsdemo.mojonetworks.com/api/v1.14/site
|
Request Body | This API call does not require any request body parameters. |
Response Body | If the API call is successful, the session details are returned in the response body. The response is in the application/json format. The below list describes the contents of the response body.
A sample response is as follows: { "success": true, "message": "Record Found", "data": { "site": { "is_sso_enabled": true, "is_kvs_enabled": true, "canvas_url": "https://canvasdemo.airtightnw.com", "brand_config": { "id": "61b12e30e5d51f9d185d0f99a0e8c850", "short_name": "Mojo", "full_name": "Mojo Networks, Inc.", "product_name": "Guest Manager", "wireless_manager_name": "Wireless Manager", "support_email": "[email protected]", "copyright_statement": "\\u00a9 {0} Mojo Networks, Inc. All Rights Reserved.", "license_url": "http://www.mojonetworks.com/home/cloud-services-agreement.html", "patent_trademark_info": "Protected by one or more of U.S. patent Nos. 7,002,943; 7,154,874; 7,216,365; 7,333,800; 7,333,481; 7,339,914; 7,406,320; 7,440,434; 7,447,184; 7,496,094; 7,536,723; 7,558,253; 7,710,933; 7,751,393; 7,764,648; 7,804,808; 7,856,209; 7,856,656; 7,970,894; 7,971,253; 8,032,939; and international patents: AU 200429804; GB 2410154; JP 4639195; DE 60 2004 038 621.9; and GB/NL/FR/SE 1976227. More patents pending. Mojo Networks, Mojo Networks logo, AirTight Networks and the AirTight Networks logo are trademarks and AirTight is a registered trademark of Mojo Networks, Inc.", "report_footer": "Mojo", "fb_url": "https://www.facebook.com/mojonetworks", "twitter_url": "https://twitter.com/mojonetworks_", "linkedin_url": "https://www.linkedin.com/company/mojo-networks" } } } } |
Get Server Version
Description | Returns application and API versions. |
---|---|
Who Can Execute? | Any user can execute this API call. |
Syntax |
GET <Base_URL>/site/version
|
Sample code |
https://analyticsdemo.mojonetworks.com/api/v1.14/site/version
|
Request Body | This API call does not require any request body parameters. |
Response Body | If the API call is successful, the HTTP response status is 200. The response body contains the details of API and application version. The response is in the application/json format. The below list describes the contents of the response body:
A sample response is as follows: { "success": true, "message": "Record Found", "data": { "version": { "application_build": "4.9.2-421", "application_version": "4.9.2", "api_version": "v1.14" } } } |