Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

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

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: https://doc.enreachvoice.com/beneapi

...