Skip to content

Setting up Google Drive API

Oliver Tseng edited this page Jul 16, 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. Set Oauth consent screen to production

Click on "Oauth consent screen" in the left menu. 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!". Try stopping UBA, delete the file "token.pickle", then restart UBA.

Clone this wiki locally