shell - Call Google Spreadsheet by bash -
i call private google spreadsheet bash/shell. don't want edit or something, read , put content on stand-output... possible? found way, can call published projects google drive, doesn't fit, have confidential data in spreadsheet!
also haven't find easy use api solution 1 simple thing.
thanks!
yes it's possible.
your script need 3 things, each curl:-
- use saved refresh token request access token
- use access token fetch spreadsheet's file resource (json)
- parse json extract exportlinks object, , choose format (eg. csv) want download
- get exportlink
Comments
Post a Comment