RESTDataConnector.get

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.

Further documentation.

JavaScript example:

 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);
 

returns java.lang.Object

Parameters

java.lang.String  uri,  java.util.Map  options,