Snippets
Useful snippets of code given as examples to help with various scripting needs.
Scripted SOAP Service
(function scriptedWebServiceOperation(request, response) {
var helper = new x_snd_eb.SoapHelper('api_name'); // the API name of the Unifi Process
var xml = helper.processRequest(soapRequestXML);
response.soapResponseElement = snd_eb_util.getSoapResponseElement(xml);
})(request, response);Scripted REST API
(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
x_snd_eb.ws_console.execute('Request received', function() {
var helper = new x_snd_eb.RestHelper('incident_guide'); // the API name of the Unifi Process
processAttachment(helper.getRequest().getRecord());
helper.processRequest(request, response, 'POST'); // the HTTP method of the resource
});
})(request, response);Poll Requests
Bond location and data
Last updated
Was this helpful?
