How to automate Google related tasks
developers.google.com
developers.google.com
I've not used it and I have a feeling it doesn't really help one take full advantage of their IDE of choice but it might still beat the online editor.
The Drive API doesn't actually expose that information at all so I had to loop through the files with a counter to get the information I needed, but that was so inefficient that I got timeout errors for anything but the smallest of folders.
Unfortunately I had to resort to their Python API which was totally awful in its own way, but at least I didn't have to worry about timeout errors and could get the job done.
Google apps script is probably good for doing stuff in spreadsheets or documents, but its use as an API across Google's platform really needs some work.
Just for fun, I also have an script to post XKCD to a Slack channel: https://gist.github.com/saagarjha/ea067aff9674e8382c15d3b7de.... It's probably not the intended use, but it's free and runs periodically!
It seems they'll try to push it again now.
My problem with "automating Google-related tasks" was always the complexity of their APIs, specially authorization, and the need to use those enourmously complex SDKs they provide. Sometimes I want to just do some curl calls.
In the case of Google Apps Script, perhaps it would've been better if they came up with a coding environment separate from Google Drive.
The unofficial APIs exposed by single-page-apps are pretty easy to reverse engineer, too.
1: https://developers.google.com/apps-script/reference/url-fetc...
There were a bunch of gotchas in terms of the 6-minute runtime, the available runtime per day, and the script just getting killed randomly.
I managed to work around them all after a lot of hair-pulling... We ran ~15k invoices through it last year!
[1] https://developers.google.com/apps-script/advanced/tasks
But yes I hope they're being careful with this.
I'd really like to hear about their plans security wise with this.
http://www.behind-the-enemy-lines.com/2012/04/google-attack-...
Where is the actual security incident?