Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dogsghost/gdrive-json-storage
script for interacting with an app-specific JSON file via Google Drive API
https://github.com/dogsghost/gdrive-json-storage
Last synced: 1 day ago
JSON representation
script for interacting with an app-specific JSON file via Google Drive API
- Host: GitHub
- URL: https://github.com/dogsghost/gdrive-json-storage
- Owner: dogsGhost
- Created: 2014-03-03T02:25:22.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-03T02:25:25.000Z (almost 11 years ago)
- Last Synced: 2024-04-17T05:46:08.739Z (10 months ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Read/Write JSON via Google Drive API
---A reusable script leveraging the Google Drive API.
This script:
- Checks if the user has authorized your app to use their drive, if not it prompts the user to do so.
- Checks if there are any files stored in the AppData folder yet, if not it creates an empty JSON file.
- (NYI) *If there is a file in AppData, it is assumed to be the JSON file and its contents are returned as a JSON object.*
- (NYI) *There is a method that accepts a JSON object and will overwrite the stored JSON file with that object via JSON.stringify.*Currently the script assumes all you're using the GD API for is to store a JSON file in the App Data folder, reading the file and rewriting to it as necessary.
Browser support is untested but should cover all modern browsers.