Setting up Google Drive API - eliranwong/UniqueBible GitHub Wiki
These steps are required for Notes Backup with Google Drive.
Google Cloud project
1. Create aGo to Google Cloud Console and click on "New Project".
Call the project "Unique Bible App"
OAuth client ID credentials
2. CreateGo to Menu > APIs & Services > Credentials
Click on "Create Credentials" at the top and select "Oauth client ID".
Select "Desktop App" for Application type.
Enter "Unique Bible App" for name.
It will then show a window that says "OAuth client created". Click on the "Download JSON" link. It will download a file like "client_secret_1234567890.apps.googleusercontent.com.json". Rename this file to "credentials.json" and place it in the UBA root folder.
3. Enable the Google Drive API with the Oauth credentials.
Go to Menu > APIs & Services > Library
Search for "google drive api" and click on "Google Drive API"
Click on "Manage", then click on "Enable"
Under "Credentials", verify the "Unique Bible App" Oauth is selected.
4. Configuring Oauth consent screen
Click on "Oauth consent screen" in the left menu.
Configure the consent screen with:
- Set user type to external
- Enter "Unique Bible App" for name
- Enter your email for support email
- Leave everything else blank
Verify Publishing status is "In Production".
Start UBA and run Plugins/Google Drive Notes Backup
When you first run this, it will ask for the Google account to use.
Choose your google account
Select "Advanced"
(Do not worry! Our app do NOT collect any of your information.)
(Remarks: You credentials is stored locally on your device. It is used only for communicating with google-drive.)
(UBA does NOT collect your data.)
Select "Go to ..."
Select "Allow"
Select "Allow"
Troubleshooting
If you get "Failed to upload bible notes!", look in the console to see the details of the error.
If you see "The OAuth client was deleted" in the console error messages, that means you had regenerated the credentials. After regenerating credentials, you will need to delete the file "token.pickle" (this file caches the old credentials), then restart UBA.