Questions tagged [google-drive-api]

Questions related to integration with Google's cloud storage service or interacting with Google Drive files programmatically, via the Google Drive API, Google Drive SDK, or Google Apps Script. Usage questions about the web application should be posted at Web Applications Stack Exchange.

Google Drive is a cloud-based application and service for creating and managing cloud storage and files. The service supports an internal API for Google Apps Script as well as an External API.

Usage questions about the web application should be posted at Web Applications Stack Exchange instead of here.

Note: Google has used the brand "Google Drive" to encompass a suite of products, but since conforming to that would introduce ambiguity here, the tag is specifically for the cloud storage service while refers to the suite.

Note: Google Drive will soon be renamed to Google One.

Important URLs for the Google Drive SDK

Breaking changes:

Unofficial support channels

14746 questions
3
votes
1 answer

Why is the export to the Drive empty, when using Google Earth Engine in Python with authentication through service account?

I'm using the Google Earth Engine in Python to get a Sentinel-2 composition and download it to my google drive. When doing a manual authentication everything is working fine: ee.Authenticate() ee.Initialize() However, as I want to use my code in a…
3
votes
3 answers

Powershell - CloseMainWindow work for all?

I'm looking for a way to gracefully close/quit the GoogleDrive app which runs under the process GoogleDriveFS. get-process GoogleDriveFS Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName ------- ------ ----- ----- …
Tony
  • 8,681
  • 7
  • 36
  • 55
3
votes
3 answers

Google drive image gives 403 forbidden error

I am using google drive to show images on a website. I'm using the following url to show the images: https://drive.google.com/uc?export=view&id={fileId} It works fine on most occasions, but some users don't see the images and get the following…
sboc
  • 31
  • 1
  • 2
3
votes
2 answers

Mounting Google Drive on Colab

I'm trying to mount my drive on Colab using the following code: from google.colab import drive drive._mount('/content/drive') And I'm getting the following error: 298 # Terminate the DriveFS binary before killing bash. ValueError: mount…
zyezye11
  • 47
  • 1
  • 9
3
votes
1 answer

Google Drive API error - "message": "Shared drive not found: xyz"

I am using a service account to connect to a shared drive in my personal Google account. The Google Drive API always returns an error saying the shared drive was not found. I tried both of these: making the shared drive public for anyone with the…
3
votes
1 answer

Can I export Google Slides as HTML in the Drive API?

I'm stuck implementing a prototype to extract Google slides for other processing. When I try request = service_drive_v3.files().export_media(fileId=file_id, mimeType='text/html) on a Google slide I get:
Nic Cottrell
  • 9,401
  • 7
  • 53
  • 76
3
votes
2 answers

Nodejs Script Not Reading GDOC File Extension

I am using the Google Drive for Developers Drive API (V3) Nodejs quickstart. In particular I am concentrating on the following function. Where I have customized the pageSize to 1 for testing. And am calling my function read(file.name); /** *…
Dave
  • 687
  • 7
  • 15
3
votes
1 answer

How to avoid auth page using google drive api with pydrive

I`m automating uploading files to google drive using pydrive. I`m trying to avoid the authentication page that shows google every time i authenticate with the api. I`ve read some blogs about it but I dont get anything clear.
Nat
  • 77
  • 8
3
votes
2 answers

How to save a file to Google Drive from Flutter web without a local file on disk?

The example Drive API v3 code shows that to save a file to Google drive from your app you have to create a local file on disk first, then upload it. Since I'm using Flutter for web (as well as Windows and Android) I can't save files to disk. (Nor…
Richard
  • 14,798
  • 21
  • 70
  • 103
3
votes
1 answer

Preventing Google API token expiry using Python and Google Drive API?

I have the below sample code that attempts to access files on my personal Google Drive account. The earlier version had an annoying problem, namely that Google required manual enabling of it every time it ran, via opening a link in the browser. This…
lazarea
  • 1,129
  • 14
  • 43
3
votes
1 answer

Is it possible to initiate Google Drive File Approval via API?

Google Drive Approvals are now out of beta and allow for a user to request one or more other parties to approve/reject a document, then lock it as non-editable. Is there a way to do this via the Google Drive/Google Docs/Google Slides API, or do you…
xd1936
  • 1,038
  • 2
  • 9
  • 27
3
votes
4 answers

Downloading a Large Folder From Google-Drive Using Python

I'm trying to download a large folder with 50000 images from my GDrive into a local server using Python. The following code receives a limitation error. Any alternative solutions? import gdown url =…
Vahid the Great
  • 393
  • 5
  • 18
3
votes
0 answers

How to resolve the error related to file operation in google drive using spring boot?

How to resolve the error given below? java.lang.NullPointerException: Cannot invoke "com.app.gdrivetest.service.FileManager.listEverything()" because "this.fileManager" is null at…
Linet M Shaji
  • 69
  • 1
  • 7
3
votes
1 answer

How do I search Google Drive API by date?

I am using Google Drive V3 API to manipulate files in a folder. What I am currently doing to list all my files is like so: const data = await drive.files.list({ q: `'${folderId}' in parents` }); console.log(data.files); So basically I'm using a…
ffx292
  • 542
  • 12
  • 27
3
votes
1 answer

Flutter How can I get progress status of uploading file to google drive by using google drive api?

I am using google_apis v3 to upload a file to drive. How can I get the progress percentage of uploading status through the Google Drive API library? And also how can I cancel the uploading file? The sample source code is as below. Future
1 2 3
99
100