Skip to content

Instantly share code, notes, and snippets.

@benjisimon
benjisimon / sgs_sample.php
Created October 23, 2013 10:40
A sample of the Simple Google Spredsheet API
<?php
/*
* A PHP file for testing the Simple Google Spreadsheet API
*/
date_default_timezone_set('UTC');
/* ------------------------------------------------------------------------
* Start Configuration
* ------------------------------------------------------------------------
*/
@benjisimon
benjisimon / sgs.php
Created October 23, 2013 10:26
A very, very simple Google Spreadsheet API. Depends on Zend's API, but provides a drop dead simple interface to it.
<?php
/*
* A truly trivial API for dealing with Google Spreadsheets. Designed to work
* with spreadsheets in 'List Form'. The API is designed with absolute simplicity in mind:
* you set a number of constants, and call either gs_list("worksheet name") or
* gs_walk("Worksheet name", 'callback');
*
* And that's it.
*/