Skip to content

Setting up Google Drive API

Oliver Tseng edited this page Jul 18, 2022 · 12 revisions

These steps are required for Notes Backup with Google Drive.

Go to Google Cloud Console and click on "New Project".

Call the project "Unique Bible App"

Screenshot from 2022-07-15 19-42-33

Go to Menu > APIs & Services > Credentials

Click on "Create Credentials" at the top and select "Oauth client ID".

Screenshot from 2022-07-15 19-50-57

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"

Screenshot from 2022-07-15 19-59-45

Click on "Manage", then click on "Enable"

Screenshot from 2022-07-15 19-59-45

Under "Credentials", verify the "Unique Bible App" Oauth is selected.

Screenshot from 2022-07-15 20-25-12

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".

Screenshot from 2022-07-15 20-29-11

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.

Clone this wiki locally