google-drive-api

Is the https://www.googleapis.com/auth/drive.file enough to create and update files or is the scope /drive needed?

大兔子大兔子 提交于 2020-12-14 04:21:33
问题 Currently we only have the scope https://www.googleapis.com/auth/drive.readonly but we want to be able to write and update files to google drive as well. Reading the documentation they state that https://www.googleapis.com/auth/drive.file is enough to create and update files. But before we apply to this I want to make sure this scope is enough. 回答1: As written in the Documentation https://www.googleapis.com/auth/drive.file will only allow you access to files created or opened by the app(you).

google Drive api v3 file upload errors

女生的网名这么多〃 提交于 2020-12-13 03:45:54
问题 The google drive api on python is showing the following error. My file upload code is already mentioned on Google Drive api v3 file upload errors via python I am getting the following errors, File "/opt/cppython/lib/python3.8/site-packages/httplib2/__init__.py", line 1685, in _request raise RedirectMissingLocation( httplib2.RedirectMissingLocation: Redirected but the response is missing a Location: header. My pips are as follows, google-api-core 1.22.4 google-api-python-client 1.12.3 google

“Shared Drive” support in Google Apps Script

我怕爱的太早我们不能终老 提交于 2020-12-12 06:21:20
问题 I am writing a JavaScript tool in Google Apps Script to check some properties of documents, like "are all links valid", "are permissions set correctly", and so on. I am using the API documented in https://developers.google.com/apps-script/reference/drive/drive-app to look up files by ID, check their permissions, locate them in Google Drive etc., but I found that "Shared Drives" don't work very nicely with that API. For example, for the root folder of a Shared Drive, Folder.getName() only

Why does the googledrive library in R identifies more than one file with only one file in the Drive folder?

拥有回忆 提交于 2020-12-12 06:13:04
问题 I am trying to download a .tif file from my Google Drive folder (which is exported to it via Google Earth Engine), using the googledrive library. However, when calling the map function, I get the following error: Error: 'file' identifies more than one Drive file. I have already managed to download other .tif files with this code, which worked without any error. Why do I get this error, and how do I resolve it? As you can see in the Drive folder (it's public), the folder contains only one file

Why does the googledrive library in R identifies more than one file with only one file in the Drive folder?

与世无争的帅哥 提交于 2020-12-12 06:11:19
问题 I am trying to download a .tif file from my Google Drive folder (which is exported to it via Google Earth Engine), using the googledrive library. However, when calling the map function, I get the following error: Error: 'file' identifies more than one Drive file. I have already managed to download other .tif files with this code, which worked without any error. Why do I get this error, and how do I resolve it? As you can see in the Drive folder (it's public), the folder contains only one file

Why does the googledrive library in R identifies more than one file with only one file in the Drive folder?

我们两清 提交于 2020-12-12 06:10:28
问题 I am trying to download a .tif file from my Google Drive folder (which is exported to it via Google Earth Engine), using the googledrive library. However, when calling the map function, I get the following error: Error: 'file' identifies more than one Drive file. I have already managed to download other .tif files with this code, which worked without any error. Why do I get this error, and how do I resolve it? As you can see in the Drive folder (it's public), the folder contains only one file

“Publish to web” on Google Sheets not working properly

 ̄綄美尐妖づ 提交于 2020-12-08 04:30:30
问题 Yesterday there was a disruption on Google Drive according to Google Appstatus. At the same time I start getting erros from several apps that READS PUBLISHED TO WEB Google sheet files in XLS and CSV format. 24 hours later my team still got erros. When I tried to read a public link in Python, QlikView ou PowerBI I got an error; when a use it in browser it works fine (shows the file if html or download XLS ou CSV files). when I download the files I can load then in the application with no

“Publish to web” on Google Sheets not working properly

会有一股神秘感。 提交于 2020-12-08 04:29:28
问题 Yesterday there was a disruption on Google Drive according to Google Appstatus. At the same time I start getting erros from several apps that READS PUBLISHED TO WEB Google sheet files in XLS and CSV format. 24 hours later my team still got erros. When I tried to read a public link in Python, QlikView ou PowerBI I got an error; when a use it in browser it works fine (shows the file if html or download XLS ou CSV files). when I download the files I can load then in the application with no

Google Drive Picker: Show only top level folders

旧时模样 提交于 2020-12-07 04:38:11
问题 Currently I am using google.picker.​ViewId.FOLDERS view in Google drive picker. This however, shows all the folders(including deep level folders) in my drive. How to achieve a view in which only the top level folders are displayed at first? This would be similar to Dropbox chooser's file view. 回答1: In order to see the folders and files at root level, you can use the view: addView(new google.picker.DocsView().setIncludeFolders(true).setOwnedByMe(true)) You will be able to search for items in

Google Drive Picker: Show only top level folders

邮差的信 提交于 2020-12-07 04:37:41
问题 Currently I am using google.picker.​ViewId.FOLDERS view in Google drive picker. This however, shows all the folders(including deep level folders) in my drive. How to achieve a view in which only the top level folders are displayed at first? This would be similar to Dropbox chooser's file view. 回答1: In order to see the folders and files at root level, you can use the view: addView(new google.picker.DocsView().setIncludeFolders(true).setOwnedByMe(true)) You will be able to search for items in