for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace REverse\GSheets\Operation;
use REverse\GSheets\Value;
class Update extends Operation
{
const DEFAULT_PARAMS = [
'valueInputOption' => 'RAW'
];
public function execute(Value $value, $range, $params = [])
if (empty($params)) {
$params = self::DEFAULT_PARAMS;
}
$service = $this->spreadsheets->getClient()->getGoogleServiceSheets();
$service->spreadsheets_values->update(
$this->spreadsheets->getSpreadSheetId(),
$range,
$value->getGoogleSheetsValueRange(),
$params
);