private function executeRest($command, $parameters = array())
    {

        $result = $this->restClient->execute($command);

        if (isset($result['code']) && $result['code'] === 0) {
            return $result;
        }

        throw new Exception(
            "There was an error with the Rest call " .
            $command->getName() .
            PHP_EOL .
            $result['code'] .
            ' : ' .
            $result['message'] .
            PHP_EOL .
            print_r($result['errors'], true) .
            PHP_EOL .
            'Parameters : ' .
            print_r($parameters, true) .
            PHP_EOL,
            $result['code']
        );

    }
private function executeRest($command, $parameters = array())
    {

        $result = $this->restClient->execute($command);

        if (isset($result['code']) && $result['code'] === 0) {
            return $result;
        }

        throw new Exception(
            "There was an error with the Rest call " .
            $command->getName() .
            PHP_EOL .
            $result['code'] .
            ' : ' .
            $result['message'] .
            PHP_EOL .
            print_r($result['errors'], true) .
            PHP_EOL .
            'Parameters : ' .
            print_r($parameters, true) .
            PHP_EOL,
            $result['code']
        );

    }
private function executeRest ( $ command , $ parameters = array ( ) ) { $ result = $ this -> restClient -> execute ( $ command ) ; if ( isset ( $ result [ 'code' ] ) && $ result [ 'code' ] === 0 ) { return $ result ; } throw new Exception ( "There was an error with the Rest call " . $ command -> getName ( ) . PHP_EOL . $ result [ 'code' ] . ' : ' . $ result [ 'message' ] . PHP_EOL . print_r ( $ result [ 'errors' ] , true ) . PHP_EOL . 'Parameters : ' . print_r ( $ parameters , true ) . PHP_EOL , $ result [ 'code' ] ) ; }
Exec Guzzle command
Wallet API doesn't send HTTP error code in case of parameters errors, send 200 instead
Error is in request body

@param type $command
@param array $parameters
@return type
@throws Exception
Exec Guzzle command Wallet API doesn t send HTTP error code in case of parameters errors send 200 instead Error is in request body