google drive client api
is a very small library to upload / download / delete or modify files on goole drive.
IMPORTATNT: Currently only works for application-appdata folder, because it was such a mess to get here that I didn't wanted to continue. But feel free to PR, should be an easy fix
installation
npm install google-drive-client-api
usage
{ // CLIENT_ID is an id you will need to get through the google developer console // DISCOVERY_DOCS is an array [], can be empty in most cases // SCOPES list of scopes seperated by spaces, propably one of those: https://www.googleapis.com/auth/drive.appdata or https://www.googleapis.com/auth/drive.appdata or https://www.googleapis.com/auth/drive.file drive;} { ifdrive console; else console; } { drive} { drive;} { drive;} { drive;}
example
- clone this repo
cd example
npm install
npm run dev