protected function call(\LibX\Net\Rest\Request $request, \LibX\Net\Rest\Response $response)
    {
      // Make the call!
      $this->client->execute($request, $response);

      //print_r($request);
      //print_r($response);

      // Get info
      $info = $response->getInfo();

      // Get JSON response
      $json = $response->getData();

      // Decode JSON
      $data = json_decode($json);

      return $data;
    }
protected function call(\LibX\Net\Rest\Request $request, \LibX\Net\Rest\Response $response)
    {
      // Make the call!
      $this->client->execute($request, $response);

      //print_r($request);
      //print_r($response);

      // Get info
      $info = $response->getInfo();

      // Get JSON response
      $json = $response->getData();

      // Decode JSON
      $data = json_decode($json);

      return $data;
    }
protected function call ( \ LibX \ Net \ Rest \ Request $ request , \ LibX \ Net \ Rest \ Response $ response ) { // Make the call! $ this -> client -> execute ( $ request , $ response ) ; //print_r($request); //print_r($response); // Get info $ info = $ response -> getInfo ( ) ; // Get JSON response $ json = $ response -> getData ( ) ; // Decode JSON $ data = json_decode ( $ json ) ; return $ data ; }
Make a REST call

@param \LibX\Net\Rest\Request $request
@param \LibX\Net\Rest\Response $response
@return StdClass
Make a REST call