gonzakpo / google-spreadsheet-bundle
Dreamlex Google spreadsheet bundle
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:symfony-bundle
Requires
- google/apiclient: ~2.0
- symfony/symfony: ~2.8 || ~3.1
Requires (Dev)
- phpunit/phpunit: 5.4.*
This package is auto-updated.
Last update: 2024-11-10 12:34:07 UTC
README
Installing
Go to https://developers.google.com/sheets/quickstart/php
Follow the first step.
Put your client_secret.json
in to /app/config/
Execute command
app/console google-spreadsheet:set-credentials
Usage
$googleSpreadsheet = $this->container->get('dreamlex_google_spreadsheet'); $tableData = $googleSpreadsheet->getTable('1_ApzX0ZEpN79EL4v_rSpU1PxpgYYOCDKfet7_le0suM', 'IP!A2:B');
Functions
getTable($spreadsheetId, $range = null) createTable($title) addPermissionTable($spreadsheetId, $email, $type = 'user', $role = 'writer', $sendNotificationEmail = false) addRowTable($spreadsheetId, $range, $values) updateRowTable($spreadsheetId, $range, $values)