public function post($query, Array $parameters = [], $autoParser = true) {
        curl_setopt_array($this->resource, [
            CURLOPT_POSTFIELDS => array_merge($parameters, [
                self::PARAMETER_QUERY => $query,
                self::PARAMETER_APIKEY => $this->apiKey
            ])
        ]);

        $dom = new \DOMDocument;
        $ret = curl_exec($this->resource);
        if (!$autoParser) return $ret;
        $dom->loadXML($ret);
        static::assert($dom);
        return $dom;
    }
public function post($query, Array $parameters = [], $autoParser = true) {
        curl_setopt_array($this->resource, [
            CURLOPT_POSTFIELDS => array_merge($parameters, [
                self::PARAMETER_QUERY => $query,
                self::PARAMETER_APIKEY => $this->apiKey
            ])
        ]);

        $dom = new \DOMDocument;
        $ret = curl_exec($this->resource);
        if (!$autoParser) return $ret;
        $dom->loadXML($ret);
        static::assert($dom);
        return $dom;
    }
public function post ( $ query , Array $ parameters = [ ] , $ autoParser = true ) { curl_setopt_array ( $ this -> resource , [ CURLOPT_POSTFIELDS => array_merge ( $ parameters , [ self :: PARAMETER_QUERY => $ query , self :: PARAMETER_APIKEY => $ this -> apiKey ] ) ] ) ; $ dom = new \ DOMDocument ; $ ret = curl_exec ( $ this -> resource ) ; if ( ! $ autoParser ) return $ ret ; $ dom -> loadXML ( $ ret ) ; static :: assert ( $ dom ) ; return $ dom ; }
Realiza a chamada ao WS da BIPBOP
@param string $query Query da BIPBOP
@param array $parameters
@return \DOMDocument
Realiza a chamada ao WS da BIPBOP