This function adds authentication data to the request and executes it.
Syntax
requestWithAuth($request)
Arguments
$request
HttpRequest object
Return value
If the operation was successful it returns the body of the server's response.
If unsuccessful it returns false.
Examples
Use lastError() function to get the error details. If the server returns an error, lastError() returns the whole server response, header and the body.
$rconn = getRESTConn();
$request = new HttpRequest( "https://api.service.com/resource" );
$response = $rconn->requestWithAuth( $request );