brucemcpherson / desktopliberation

hosting for desktop liberation google plus community
30 stars 1 forks source link

SuperFetch plugin – Google Drive client for Apps Script – Part 1 #141

Open brucemcpherson opened 2 years ago

brucemcpherson commented 2 years ago

Drv is a SuperFetch plugin to access the Google Drive API. SuperFetch is a proxy for UrlFetchApp with additional features – see SuperFetch – a proxy enhancement to Apps Script UrlFetch for how it works and what it does.

This is another in my series on SuperFetch plugins.

There are of course already 2 Drive API services (Drive and DriveApp) for Apps Script. As well as built in caching and list handling, SuperFetch plugin takes a slightly different approach to these Drive APIS, which are about navigating Drive via a series of file and folder ids.

Drv supports ids, but it also provides a more standard path style of file access (eg user/files/documents/a.doc) which I personally prefer to messing around with all those ids. Not all methods are supported yet of course, but I’ll add more over time.

Behind the scenes, Drv use the Drive REST API. It doesn’t use the built in Apps Script services at all.

The main additional features of Drv are

https://ramblings.mcpher.com/apps-script/superfetch-proxy/plugin-drive-1/