Skip to content

Commit

Permalink
update githubpri README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
philipkcl committed Sep 29, 2023
1 parent 48427cc commit e519dba
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions portality/scripts/githubpri/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,6 @@ the `DOAJ_PRILIST_KEY_PATH` json file generated by `console.cloud.google.com` an
* google drive api
* google sheet api



Setup google account for api key
------------------------------------------
### create project an enable api
* go to https://console.cloud.google.com/
* create and select a project on the top left
* searching for "Google Drive API" and enable it, url should be some thing like (https://console.cloud.google.com/marketplace/product/google/drive.googleapis.com)
* searching for "Google Sheets API" and enable it

### create key
* click `create credentials` button
* select `Google Drive API` and `Web server` and `Application data`
* select `No, I'm not using them`
* click `Next`
* filling `Service account name` and `Service account description`
* click `Done`
* select `CREDENTIALS` and your new service
* click `KEYS`, `ADD KEY`
* select `JSON` and click create


### share google sheet to service account
* go to google drive
* right click the sheet you want to share
* click `Share`
* paste the service account email to `People` field
* click `Done`
* ref: docs/dev/how-to-setup.md

0 comments on commit e519dba

Please sign in to comment.