src/Utils/Request.php
/**
     * Makes CURL POST-request to the $url with parameters $data
     *
     * @param string $url URL
     * @param string $data POST-request parameters
     *
     * @return string Request's response
     * @throws RequestCURLException If the request didn't succeed
     */
Makes CURL POST-request to the $url with parameters $data
@param string $url URL
@param string $data POST-request parameters

@return string Request's response
@throws RequestCURLException If the request didn't succeed
Makes CURL POST - request to the $url with parameters $data @param string $url URL @param string $data POST - request parameters @return string Request ' s response @throws RequestCURLException If the request didn ' t succeed
public function post(string $url, string $data)
    {
        $options = [
            CURLOPT_URL => $url,
            CURLOPT_POST => true,
            CURLOPT_POSTFIELDS => $data,
        ];
        return $this->request($options);
    }
public function post ( string $ url , string $ data ) { $ options = [ CURLOPT_URL => $ url , CURLOPT_POST => true , CURLOPT_POSTFIELDS => $ data , ] ; return $ this -> request ( $ options ) ; }
Makes CURL POST-request to the $url with parameters $data
 @param string $url URL
 @param string $data POST-request parameters
Makes CURL POST - request to the $url with parameters $data @param string $url URL @param string $data POST - request parameters