Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syslogic/google-apps-script
Google Apps Script
https://github.com/syslogic/google-apps-script
cloud-datastore google-apps-script
Last synced: 4 months ago
JSON representation
Google Apps Script
- Host: GitHub
- URL: https://github.com/syslogic/google-apps-script
- Owner: syslogic
- License: mit
- Created: 2018-03-06T17:41:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-24T23:25:08.000Z (almost 3 years ago)
- Last Synced: 2024-01-16T12:18:09.467Z (6 months ago)
- Topics: cloud-datastore, google-apps-script
- Language: JavaScript
- Homepage: https://script.google.com
- Size: 90.8 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Lists
- google-apps-script-awesome-list - syslogic/google-apps-script
- google-apps-script-awesome-list - syslogic/google-apps-script
- google-apps-script-awesome-list_contributorpw - syslogic/google-apps-script
README
# CloudDatastore.gs
CloudDatastore.gs is a client for Google Cloud Datastore, which runs as a Service Account.It is written in Google Apps Script - and so far, it can select, insert, update and delete entities.
## Setup
a) Add the script to https://script.google.com
b) Add the `OAuth2 for Apps Script` library: `1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF`.
c) Upload the service account configuration file to your Google Drive (to be downloaded from https://console.cloud.google.com/project/_/iam-admin and then uploaded to https://drive.google.com).
The service account needs to have the "Cloud Datastore User" role asigned.
d) Adjust the script according to the filename of the configuration file.
## Reference
@see https://github.com/googlesamples/apps-script-oauth2
@see https://stackoverflow.com/questions/49112189/49113976#49113976
@see https://cloud.google.com/datastore/docs/reference/data/rest/