Quick Guide: New York

Here's my take of whats new with New York

Deprecated things

Updated things

New things

    (function executeQuery(v_table, v_query) {
try {
// <https://randomuser.me/api/>\
var requestBody = {};
var restMessage = new sn_ws.RESTMessageV2();
restMessage.setHttpMethod("get");
restMessage.setEndpoint("<https://randomuser.me/api/?results=1000&seed=foobar>");\
restMessage.setRequestBody(JSON.stringify(requestBody));
var response = restMessage.execute();
var error = response.haveError();
if (error) {
var errorCode = response.getErrorCode();
var errorMsg = response.getErrorMessage();
gs.info(errorCode);
gs.info(errorMsg);
} else {
var headerVal = response.getHeader("Content-Type");
var headers = response.getHeaders();
var queryString = response.getQueryString();
var statusCode = response.getStatusCode();
var responseBody = response.getBody();
var responseObj = JSON.parse(responseBody);
var responseObjLen = responseObj.results.length;
}
})()

Further Reading: