Google Spreadsheet API pitfalls
Posted | archive
-
Don't use OAuth 2 for "Google Apps for Business", coz admin may set share option to "limit to xxx domain only", thus your poor nigga API account like "30000000000@developer.gserviceaccount.com" won't work.
-
Google Spreadsheets' CSV output format is terrible shit. Never bother touch it. It does not handle line breaks nor escapes like sane people do
-
XML-like namespace or XLST transformations is ruining JSON. Namespace everywhere, dict-inside-array is the norm which is a huge pain in the ass to parse.
-
In Spreadsheet API, use /lists/ instead of /cells/
-
The difference between /basic and /full projections is confusing. You should really use /values for read-only access
-
Never ever use OAuth2 Web service, it will ask for "whitelist" the callback URLs, if you are dev in intranet like 10.x.x.x and your IP address is DHCP dynamic, you are fucked to re-permit the callback URL.
-
The list feed contains all rows after the first row up to the first blank row. I mean, srsly WTF?
Comments