Google\Spreadsheet\DefaultServiceRequest::post PHP Method

post() public method

Perform a post request
public post ( string $url, mixed $postData ) : string
$url string
$postData mixed
return string
    public function post($url, $postData)
    {
        $headers = array("Content-Type: application/atom+xml", "Content-Length: " . strlen($postData));
        $ch = $this->initRequest($url, $headers);
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
        curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
        return $this->execute($ch);
    }