Performs an authenticated GET request to the API using the settings of the RESTDataConnector
The default headers from the RESTDataConnector are included in the request.
Any additional headers, as specified in the second parameter, will be merged.
var headers = {"Content-Type":"application/json", "Accept":"application/json"};
var parms = {"customer_id" : 122023};
var auth = HttpAuthentication.createOAuthAuthentication("connectorauth");
var opts = new RestOptions();
opts.setSocketTimeout(60);
var dc = connectors.createRESTDataConnector('https://myserviceconnector.org/customer');
var response = dc.get(dc.createUri('details'), {headers: headers, parameters: parms, options: opts, authentication: auth});
log(response.account_id);
Further documentation.
JavaScript example: