src/Connection.php
public function execPOST($url, array $params = [])
    {
        $url = $this->baseUrl . $url;

        $this->addOptions([
            CURLOPT_URL => $url,
            CURLOPT_POST => true,
            CURLOPT_POSTFIELDS => $params,
        ]);

        return $this->exec();
    }
public function execPOST($url, array $params = [])
    {
        $url = $this->baseUrl . $url;

        $this->addOptions([
            CURLOPT_URL => $url,
            CURLOPT_POST => true,
            CURLOPT_POSTFIELDS => $params,
        ]);

        return $this->exec();
    }
public function execPOST ( $ url , array $ params = [ ] ) { $ url = $ this -> baseUrl . $ url ; $ this -> addOptions ( [ CURLOPT_URL => $ url , CURLOPT_POST => true , CURLOPT_POSTFIELDS => $ params , ] ) ; return $ this -> exec ( ) ; }
Execute a POST request to a given URL, with optional parameters.

@param string   $url
@param string[] $params Array of POST parameter $key=>$value pairs.
@return ConnectionReturn The server's response.
Execute a POST request to a given URL with optional parameters .