Get Client Configuration
Returns Client Configuration.
Request
HTTP Request
Request body
Request body is empty.
Response
Returns the client config in the JSON format. See the Client Configuration model for a list of all fields.
Examples
const http = require("http");
let saymonHostname = <...>
let path = "/node/api/client-config";
let options = {
"method": "GET",
"hostname": saymonHostname,
"path": path
};
let req = http.request(options, function (res) {
let chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
let body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Response
{
"title": "SAYMON",
"comet": {
"port": ...
},
"pollInterval": 5000,
"pollIntervalSocket": 60000,
"geoMap": {
"initialPosition": [
4.355638,
-157.203189
],
"initialZoom": 8
},
"regionColor": {
"1": "rgba(206, 134, 247, 0.1)",
"3": "rgba(4, 147, 12, 0.1)",
"4": "rgba(255, 0, 0, 0.1)",
"5": "rgba(253, 118, 7, 0.1)",
"7": "rgba(250, 190, 40, 0.56)",
"8": "rgba(129, 0, 0, 0.56)",
"9": "rgba(190, 190, 190, 0.56)"
},
}