@nocodesites/plugin-gdrive-loader
v0.0.14
Published
A nocode source plugin that downloads the contents of a google drive folder recursivly with document and spreadsheet contents extracted.
Downloads
5
Readme
@nocodesites/plugin-gdrive-loader
A nocode source plugin that downloads the contents of a google drive folder recursivly with document and spreadsheet contents extracted.
usage
You need to have created a service account token with google and downloaded the .json
file for it.
Also - you need to have given read access to a folder on google drive to that service account and have the id of the folder ready.
Then - you configure the plugin using the nocode-config.js
file as shown:
const gdriveLoader = require('@nocodesites/plugin-gdrive-loader')
module.exports = {
config: {
title: 'My Example Google Drive Downloader',
},
routes: {
'/': {
page: 'Index'
}
},
plugins: [
{
build: gdriveLoader,
options: {
folderId: process.env.GOOGLE_DRIVE_FOLDER_ID,
serviceAccountToken: require(process.env.GOOGLE_SERVICE_ACCOUNT_TOKEN)
}
},
],
}