Skip to main content

Fetch data

The Google Sheets integration uses the Attlaz Services Api

$command = new \Attlaz\Model\Service\ServiceCommand();
$command->service = 'googlesheets';
$command->command = 'getsheetsvalues';

$command->addArgument('connectionId', '<ConnectionId>');
$command->addArgument('spreadsheetId', '<SpreadsheetId>');
$command->addArgument('range', '<TabName>');

$rows = $this->attlazClient->getServiceEndpoint()->sendCommand($command);