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,073
questions
0
votes
2
answers
18
views
Using Apps Script to automate sending multiple emails from a google sheet, each with a different specific pdf attachment stored in Google Drive
This works to send automated emails from the same Google sheet, but when I added lines 9, 18 and 21(attachments part) it keeps returning
Exception: Cannot retrieve the next object: iterator has ...
0
votes
1
answer
26
views
What is Google Drive's URI for uploading files
I am new to Google Drives and Cloud, with respect to automation. My company wants me to upload to their Google Drives location, NOT in Google Cloud Services buckets. I am planning on doing this with ...
-2
votes
0
answers
42
views
CURL download request from Google Picker API [closed]
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
22
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
24
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
14
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
13
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 ...
0
votes
1
answer
24
views
App Script Project deleted - how to restore it?
I deleted a project by mistake and can't retrieve it. Is there any way to restore it?
I tried restoring an earlier version of the gsheet file to which the app script project was linked. I have tried ...
-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
25
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
62
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 = ...