2017 © Pedro Peláez
 

library google-sheets

API for Google Sheets

image

eliasrosa/google-sheets

API for Google Sheets

  • Wednesday, March 15, 2017
  • by eliasrosa
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 67 % Grown

The README.md

google-sheets

API para acessar planilhas do Google Drive, (*1)

Download

php composer.phar require eliasrosa/google-sheets

Como usar


// Exemplo // https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit use ER\GoogleClient; use ER\GoogleSheet; $client = new GoogleClient(); $client->setApplicationName('Nome da Aplicação'); $client->setTokenPath(__DIR__ . '/token.json'); $client->setClientSecretPath(__DIR__ . '/client_secret.json'); $client->setToken('TOKEN de Acesso'); // $client = $client->getClient(); $sheet = new GoogleSheet($client); $values = $sheet ->spreadsheets_values ->get('1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms', 'Class Data!A2:E') ->getValues(); if(count($values)) { foreach ($values as $row) { printf( join($row, '|'). "\n"); } }

The Versions

15/03 2017

dev-master

9999999-dev https://github.com/eliasrosa/google-sheets

API for Google Sheets

  Sources   Download

MIT

The Requires

 

The Development Requires

api google sheets eliasrosa google sheets api