PHP utility for use on the UTD Constellation project.
This is not a wrapper for the Cisco CMX API.
{
    "username" : "",
    "password" : "",
    "map_endpoint" : "",
    "location_endpoint" : ""
}require_once("cmx_util.php");
$myNewRequest = new CMXRequest("config.json", ip);
$resp = $myNewRequest->getResponse();This makes a request to the CMX proxy specified in config.json. The response is an associative array containing all of the information from the proxy.
CMXUtil requires PHP >= 7.0 with curl.
CMXUtil abstracts the request to the CMX proxy away from the core Constellation server code. Currently, it simply parses the data but can be modified to change the data as needed.
All configuration for CMXUtil is done in a JSON file with the following parameters.
| Key | Value | 
|---|---|
| username | Username for the CMX Proxy | 
| password | Password for the CMX Proxy | 
| map_endpoint | Map endpoint for the CMX proxy (.../maps?) | 
| location_endpoint | Location endpoint for the CMX proxy (.../clients?) |