Headless Google Drive Uploads
First of all we need an Access Token for the Google Drive account we’re uploading to. This can be attained in many different ways. I’ve written a simple bash script to get Google API authentication and access tokens, which can be found here. Note: due to a bug somewhere, Google doesn’t seem to like drive
scopes, so I’m using the all-enveloping https://docs.google.com/feeds
for now.