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-api
15,076
questions
-2
votes
0
answers
30
views
CURL download request from Google Picker API
I have this curl request that is working but when I go to view the image after I download it, it wont open because it says "we don't support this file format"?
Here's the request, the data ...
0
votes
0
answers
16
views
When using Google Colab, Python package 'datasets' just disappeared from virtualenv directory 'site-packages'
I'm using Google Colab and trying make a virtual environment to work.
My code is:
from google.colab import drive
drive.mount('/content/drive')
!pip install virtualenv
myenv_dir = '/content/...
-2
votes
0
answers
14
views
How to edit text in pre existing google docs instead of generating new ones using apps script
I have a script I wrote for my AppSheets app that generates construction reports and compiles information from 5 different sheets into a google document template. It sorts data based on a uniqueID ...
0
votes
0
answers
13
views
Initiate push to local machine from Google Drive [duplicate]
I have a Sheets app script that does a number of things but finishes by creating 4 flat files on my Google Drive.
I'd like to extend this by pushing the created files to my local machine immediately ...
-2
votes
0
answers
11
views
The issue with paid workspace google drive file not uploading using Google drive API with PHP 7.4 [closed]
When i used google picker for the upload document from Google drive then issue facing that file not found for the paid/business workspace of google drive and after that shared drive's file not ...
-3
votes
0
answers
24
views
Google Drive - have View access on the folder, but can not see certain files
I have a Google drive. It has a folder. I gave several people "View" permission on that folder. And as expected, when a file is put in the folder, the file inherits the permission of the ...
0
votes
0
answers
22
views
Failing to retrieve google drive labels using google service account
I'm using google service account to interact with google drive - reading files and folders etc. It works fine but i can't retrieve labels. Even if i specifically require labelInfo in fields, it's ...
0
votes
0
answers
28
views
AppScript WebApp File Upload Error: "Cannot read properties of undefined (reading 'getFoldersByName')"
I'm developing an Apps Script WebApp that includes an upload function. This function should allow users to upload a file from their machine to Google Drive and allocate it to a specific folder based ...
0
votes
1
answer
33
views
How I can create a token.json using google drive api Python
I am trying to create a token.json file to save data without having to log in every time to approve an account
This is a code that deletes 100 files at the same time. Every time I run a code, I must ...
1
vote
1
answer
61
views
How can I limit the scopes to only the current spreadsheet and use OAuth to print a PDF
So I have this PDF Template hosted on a sheet.
I want to download it to my PC whenever a function is called.
I would like to limit it to only this spreadsheet.
I have the following appscript.json:
{
...
1
vote
0
answers
35
views
Google Drive watch does not invoke callback after initial sync
I need to receive a callback whenever a known folder for a user in my enterprise receives new files.
I've setup a service account and gave the domain wide permissions with the Google Drive Scope.
...
0
votes
1
answer
13
views
How do I retrieve lastModifyingUser from Google Drive API?
I need to retrieve the list of revisions for some files in Google Drive. Here is my code:
from googleapiclient.discovery import build
# obtain creds using oauth flow, removed for brevity
service = ...
-1
votes
0
answers
31
views
Delete 100 files sam time using Google Drive API Credentials python
I have a collection of huge files and I want to delete 100 files at the same time using Google Drive API .
It is deleted using data saved in a file credentials.json .
This code works well but is slow ...
0
votes
1
answer
28
views
I am receiving a response url not found on server when I try to delete file in Google Drive using a Linux bash script and curl
I am trying to delete a file using a bash shell script that I uploaded to a shared google drive using a different shell script. I am able to list the contents of the folder that the file is in and ...
-1
votes
1
answer
38
views
Change the script name with GAS
When I copy my Spreadsheet file with Drive ( DriveApp.getFileById(template).makeCopy(name, folder) ), the script name is unchanged. How can I change the script name with Google App Script?
Read the ...