1.1.11 • Published 4 years ago

gatsby-source-gdrive-folder v1.1.11

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

Gatsby Source Gdrive

This plugin takes the following params and uses them to expose meta-data properties from google drive files inside a folder, under the gDrive namespace in graphql.

  • Key: Authorizes service account to access google drive
  • Folder ID: Looks in this folder for files
  • Destination: Downloads files from folder in drive and puts them in your local file tree at this destination

Here's an example from my gatsby-config.js:

    {
      resolve: 'gatsby-source-gdrive',
      options: {
        folderId: GOOGLE_DRIVE_FOLDER_ID,
        key: GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY,
        destination: path.join(__dirname, 'src/drive'),
        scopes: [
          'https://www.googleapis.com/auth/drive.file'
        ]
      }
    }

Limitations

Does not work with folders that have google documents. I'm only using this for images!

Acknowledgment

Based this off one of the existing google-drive source plugins. Sorry I can't remember which one, I tried a few and ran into some issues and this plugin was created in attempt to fix them. If for some reason whoever you are you find this and are upset, I'll gladly attribute you here in some fashion. Thanks!

1.1.11

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago