[ALUG] Writing to Google Sheets from bash

Ewan Slater ewan.slater at gmail.com
Fri Feb 17 21:26:13 GMT 2017


Hi Mark,

Calling a REST API from Bash using curl is an exercise in masochism.

I strongly recommend writing your scripts in Python using the requests
package.  If you prefer Ruby I recommend the httpclient gem.

Cheers,

Ewan

On 17 February 2017 at 15:36, Mark Rogers <mark at more-solutions.co.uk> wrote:
>
> I don't suppose anyone here has any experience of writing to Google
> Sheets from bash? (Specifically, I'm trying to use curl to write
> values into a pre-existing spreadsheet.)
>
> I started with a fairly simple aim: To have a few Linux boxes
> (servers, Pi's, etc) periodically update a central spreadsheet with
> stuff like disk utilisation, updates pending, O/S version, etc.
>
> However I haven't had to deal with OAuth2 before and I'm going round
> in circles trying to find out exactly what authentication I need to
> configure. My attempts at Googling have lead me into most of those
> circles without getting me out again!
>
> It seems like a useful concept to pursue but I have to admit I'm just
> way out of my depth!
>
> --
> Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
> Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER
>
> _______________________________________________
> main at lists.alug.org.uk
> http://www.alug.org.uk/
> https://lists.alug.org.uk/mailman/listinfo/main
> Unsubscribe?  See message headers or the web site above!



More information about the main mailing list