Enreach.API.executeQuery

Sends a request to Enreach REST API. Authentication is managed automatically, by adding the token to request header.

 

Parameters:

  • query (string): path within Enreach API

  • postData (object): Object which gets sent as payload to Enreach API in a POST or PUT request

  • method (string): HTTP method to be used. If specified, overrides the method determined by the existence of postData;

If postData parameter is NULL then a GET request is sent, whereas any object passed here means a POST request. The object passed here is serialized as JSON in the request payload.

If method (non-mandatory) parameter is specified, it overrides the above logic to determine HTTP method.

Detailed Enreach API documentation can be found here: EnreachAPI reference

 

© Enreach, Mannerheimintie 117, 00280 Helsinki, Finland
+358 40 450 3000, www.enreach.fi