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

Google drive - virtual drive mount in WSL2

does anybody know if i could mount the Google drive (virtual drive) in a win10 system, in wsl2? Thank you
3
votes
1 answer

Google Drive 600 member limit - how close are we to reaching it?

According to the following link, shared Google Drives have a membership limit of 600 combined users and groups. https://support.google.com/a/answer/7338880?hl=en At my organization, we have a shared drive. We are unfortunately forced to share with…
3
votes
2 answers

How to upload text file on Google drive?

How can I upload text file on Google drive using CloudFunctions? File has been created on local folder but not sure how can I pass this in metadata body. I have followed below approach: Step 1: Write file // Write file fs.writeFileSync("sample.txt",…
3
votes
1 answer

How to respond to "Drive API requires updates to your code before Sep 13, 2021"?

Today I received an email titled "Drive API requires updates to your code before Sep 13, 2021". As above #1 says the requests to the Drive API need to add the specific header, however, I don't know exactly what kind of requests need to add the…
its-ogawa
  • 69
  • 6
3
votes
1 answer

Google API credentials expire after one week

When I backup from WHM to my Google Drive account it works for one week only, after that authentication fails. If I recreate the credentials it works again for another week. Is there a way for this credential to never expire? I am following…
3
votes
2 answers

Google Drive API permission to children files

We would like access to a client’s folder within their Google Drive and all files under that folder. This can either be a folder we create from the app or a folder the client picks. The first approach I tried was to create the folder from the…
slownage
  • 154
  • 1
  • 3
  • 11
3
votes
2 answers

Does the new Google Drive Resource Key Requirements Effect Google Apps access to spreadsheets

I have a number of Google Apps Script Web Apps that allow anyone with a link to the apps script to read and update some of my google drive spreadsheets. Inside the app I gain access to the spreadsheets…
Chris
  • 33
  • 5
3
votes
3 answers

Google Drive: What combination of scopes lets an app read existing files but not have edit/delete privileges?

I've found that with https://www.googleapis.com/auth/drive scope, my app can read all existing files (and their contents) in a Google Drive, but when I auth the app, it says that this scope can also delete files in the drive and I don't want to…
Nic Cottrell
  • 9,401
  • 7
  • 53
  • 76
3
votes
2 answers

Is it possible to use the Google Drive API to get file from within a shared .zip file

Assume the following .zip file: unzip -l myarchive.zip Archive: myarchive.zip Length Date Time Name --------- ---------- ----- ---- 3663 1980-00-00 00:00 sub_dir1/file1.txt 4573 1980-00-00 00:00 sub_dir1/file2.txt …
Avner Moshkovitz
  • 1,138
  • 1
  • 18
  • 35
3
votes
1 answer

How to escape filenames for Google Drive API

I discovered that if searching for a filename with an apostrophe(') in Google Drive API, I needed to escape the apostrophe with a \. e.g: # file_name is "tim's file" file_name = file_name.replace("'", "\\'") # file_name is "tim\'s file" response =…
Ken
  • 4,367
  • 4
  • 28
  • 41
3
votes
2 answers

Embedding Google drive PDF with Zoom Parameter

I have found some old posts about this but none has solved my issue. I try to embed some Google Drive PDFs in my website and zooming them to fit horizontally one frame. Tried the code provided by google:
3
votes
1 answer

Uploading image string to Google Drive using pydrive

I need to upload an image string (as the one you get from requests.get(url).content) to google drive using the PyDrive package. I checked a similar question but the answer accepted there was to save it in a temporary file on a local drive and then…
pu239
  • 707
  • 7
  • 17
3
votes
1 answer

Downloading Google Sheet as CSV with Python yielding CSV that's only one line

I've created a fairly basic program that takes a Google Sheet and converts it into a CSV file and then spits said CSV in a given directory. That part works as intended, but the output .CSV has no line breaks or newlines, so when it's loaded into…
3
votes
2 answers

Google script to retrieve Google Drive documents hyperlink to be set in a Google Sheet array

I have a Google Sheet with Google Drive documents names in each cells. So each cells contain a Google Drive documents name. Together, the various cells form an array. I'm trying to retrieve hyperlinks of these Google Drive documents based on the…
3
votes
4 answers

How to set the path to Google Drive files from Google Colab?

I am using Google Colab and my code has the following local path to my CSV file in my laptop: path_csv = "C:\\Users\\Desktop\\data.csv" I have linked my Google Drive to my notebook in Colab by using the following code: from google.colab import…
dimdim dimdim
  • 49
  • 1
  • 1
  • 3
1 2 3
99
100