Google\Spreadsheet\DefaultServiceRequest::put PHP Метод

put() публичный Метод

Perform a put request
public put ( string $url, mixed $postData ) : string
$url string
$postData mixed
Результат string
    public function put($url, $postData)
    {
        $headers = array("Content-Type: application/atom+xml", "Content-Length: " . strlen($postData));
        $ch = $this->initRequest($url, $headers);
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
        curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
        return $this->execute($ch);
    }