TrackRecordPro API Documentation TrackRecordPro

makeRequest()

Summary

Method Name

makeRequest

Minimum Supported API Version3.0

makeRequest

$result = makeRequest($endpoint, $filters, $postdata, $method)

Details

The MakeRequest method is used internally by all other methods to call the API via HTTP.

Parameters

$endpointThe endpoint name, e.g. "users"
$filtersThe filter specifies the range of data to act upon.
$postdataThe data to be sent with a POST or PUT HTTP method call
$methodThe HTTP method verb to use, one of either GET, PUT, POST, DELETE

Return value

The method returns the result of the HTTP call, or will throw one of the following exceptions on failure:

  • HTTPException
  • JSONResponseException
  • MalformedJSONException