6

I have installed the gdrive library for Mac by doing brew install gdrive.

My goal is to upload files from my local machine to Google Drive programmatically.

However, when I do gdrive upload it says:

"Sign in with Google temporarily disabled for this app

This app has not been verified yet by Google in order to use Google Sign In."

I have also been looking at the Google Drive API v3. https://developers.google.com/drive/api/v3/reference/files/create#try-it

However, I cannot find where to get my api key and access token mentioned in the document. All the searches for Google Drive API take my to Google Cloud.

How can I get around these limitations to upload to Google Drive?

2
  • 1
    To get authorization to use Google APIs follow the steps on this answer. It will guide you in how to obtain credentials for your application, and perform Drive API calls. Commented Mar 5, 2020 at 8:43
  • 1
    More up-to-date instructions can be found here: stackoverflow.com/questions/65316819/… Commented Feb 3, 2021 at 2:33

1 Answer 1

3

The first time you execute Gdrive, you should be given a URL. Paste the URL into your browser and follow the instructions. See here.

You will be asked to enter a verification code, which is obtained by heading to the url printed in the command's output and authenticating with the google account for the drive you want access to.

Further setup info can be found at the GitHub project page for Gdrive. Make sure to use Gdrive 2. I have been using this utility successfully for several years on Linux.

Sign up to request clarification or add additional context in comments.

2 Comments

What do you mean by "execute Gdrive"? I have the command line version setup now, but not sure what command to run for that URL.
@WilliamRoss I think it's just "gdrive about". See the image in the link I posted.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.