Rest API XML producing empty infotable
Hi,
I am trying to execute this REST API call in a javascript service and produce an infotable based on the returned value.
here is the script code:
var params = {
proxyScheme: undefined /* STRING */,
headers: undefined /* JSON */,
ignoreSSLErrors: undefined /* BOOLEAN */,
useNTLM: undefined /* BOOLEAN */,
workstation: undefined /* STRING */,
useProxy: undefined /* BOOLEAN */,
withCookies: undefined /* BOOLEAN */,
proxyHost: undefined /* STRING */,
url: "https://www.imonnit.com/xml/SensorList/bWF0dGhldy5mZWx0b246V2VsY29tZTI1OENhcHVsYSE=" /* STRING */,
timeout: undefined /* NUMBER */,
proxyPort: undefined /* INTEGER */,
password: undefined /* STRING */,
domain: undefined /* STRING */,
username: undefined /* STRING */
};
var params = {
xml: Resources["ContentLoaderFunctions"].GetXML(params) /* XML */
};
// result: INFOTABLE
var result = Resources["InfoTableFunctions"].FromXML(params);
this is the xml produces when the command is in a web browser (couldn't format this correctly so follow this link https://www.imonnit.com/xml/SensorList/bWF0dGhldy5mZWx0b246V2VsY29tZTI1OENhcHVsYSE= )
And this is the datashape of the infotable:

the output i get from this is just nothing as shown here:

Any help is appreciated,
P.S there is also an extension for communicating with monnit sensors however i get the same problem, an empty infotable.
Thanks

