On this page:
The sample code says that the sendasync callback functions as response object:
server.log("Code: " + response.statuscode + ". Message: " + response.message);
However, when I use this code, it says that there is no message in response. Either the sample code is wrong or needs to be updated or I’m doing something wrong.
On a related note, can the response page be expanded to exactly what fields are available? Or are there 2 response objects, one for the callback and one for the response to a http request? In that case, please consider changing the sample code to use something other than response to make it less confusing.