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
19
votes
1 answer

Persistent authorisation for mounting Google Drive in Google Colab

I'm using Google Colab and need to restart my notebook at least once a day due to their usage limits. To mount my Google Drive I have the following code: from google.colab import drive drive.mount('drive') I then get a prompt: Go to this URL in a…
Tom Hale
  • 40,825
  • 36
  • 187
  • 242
19
votes
2 answers

copy file from Google Drive to Google Cloud Storage within Google

Is it possible to copy a file from Google Drive to Google Cloud Storage? I imagine it would be very fast since both are on a similar storage system. I haven't seen any information on either ways to do this seamlessly, without having to download the…
David542
  • 104,438
  • 178
  • 489
  • 842
19
votes
2 answers

Google Drive API v3 Migration

I decided to migrate from Google Drive API v2 to v3 and it was not an easy task. Even thought Google wrote this documentation, there are many gaps in it and there is not much information about this on the web. I'm sharing here what I have found.
IvanRF
  • 7,115
  • 5
  • 47
  • 71
19
votes
8 answers

Google Drive API - the name must not be empty: null (But I had passed valid account name to GoogleAccountCredential)

Recently, I have Android code which accesses to Google Drive. I'm using Google APIs Client Library for Java instead of Google Play services client library private static GoogleCloudFile searchFromGoogleDrive(Drive drive, String qString,…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
19
votes
6 answers

Android WebView : Remove pop-out option in google drive/doc viewer

I am loading the pdf documents in WebView through appending the pdf url to google doc api http://docs.google.com/gview?embedded=true&url=myurl Pdf is loading just fine but the webpage displays two options - Zoom-in and Pop-Out. Is there any way to…
Abhishek V
  • 12,488
  • 6
  • 51
  • 63
19
votes
3 answers

How to search inside files in Google Drive?

I am a google drive user(not a API user or developer). I want to know is there any way to search inside the file contents. I know the filenames can be searched with search bar. But i couldn't find a way to search inside files. For example, I have a…
Ajeeb.K.P
  • 1,013
  • 1
  • 13
  • 21
19
votes
3 answers

Share a Drive document without notifying user with Google Apps Script

I am creating a workflow process in Apps Script where a Doc is generated from a template and shared with various users for approval. The Script sends a customised email notifying a user that the document requires their approval but they also receive…
19
votes
11 answers

Disabling the large file notification from google drive

While downloading zip file(more than 25MB i assume) i am getting the below notification, Sorry, we are unable to scan this file for viruses. The file exceeds the maximum size that we scan. Download anyway in the browser.Is there any option to…
Nithinbemitk
  • 2,710
  • 4
  • 24
  • 27
19
votes
3 answers

Difference of 'Drive SDK' and 'Drive API'

As far as i understood, Google Drive API used to interact Google Drive with other application and Google Drive SDK used to create custom applications which to be used with in the Drive. Am i correct or if i wrong please tell me the difference of…
DarRay
  • 2,550
  • 6
  • 27
  • 39
18
votes
3 answers

com.google.android.gms.common.api.ApiException: 17: API: Drive.API_CONNECTIONLESS is not available on this device

Here is the story. I had integrated Google Drive Android SDK (8.1.0) into my app (AnyCopy) around three years ago. And I followed the tutorial to set up properly including adding credentials and api key. Everything worked okay. I could backup and…
18
votes
7 answers

Create new file in a folder with Apps Script using Google Advanced Drive service

There are four ways to create a new file: DocsList - Shown as DocsList in the Main List. Built in to Apps Script. DriveApp - Shown as Drive in the Main List. Built in to Apps Script. Drive API - Also shown as Drive in the Main List. Must be added…
Alan Wells
  • 30,746
  • 15
  • 104
  • 152
18
votes
1 answer

Unable update file store in appdata scope - 500 Internal Server Error

Previously, I have a set of Google Drive API code, which works fine in the following scenarios Save new file to appdata Update previous file in appdata Save new file to non-appdata Update previous file in non-appdata Few days ago, I encounter…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
18
votes
2 answers

How to host an sql database on a cloud?

How do you host an Mysql database that can be accessed by different websites on a cloud, such as google drive and ubuntu one. Is it even possible to do this? If so how is it done, because so many businesses that use Mysql databases start up on a…
user2884344
  • 195
  • 1
  • 1
  • 9
18
votes
2 answers

Can't get Google Drive API share dialog to work when signed into multiple accounts

I'm having a JS error when opening a share dialog in a Javascript application using the Google Drive API. The error is: Uncaught Error: Syntax Error: DOM Exception 12. However, the sharing dialog works fine when I log out of all Google accounts and…
Andy Fiedler
  • 513
  • 1
  • 5
  • 8
18
votes
3 answers

Google Drive Service Account - view files from another account

I have successfully created a Google Drive Service Account and can create files via PHP to this account. However I need to be able to view these created files from the Google web UI from other user accounts. How do I allow other users access to…
user1872879
  • 215
  • 1
  • 2
  • 7