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
39
votes
6 answers

SVN Repository on Google Drive or DropBox

Is it possible to setup SVN repo/server on google drive or dropbox etc? I want to put my PhD project under version control. The data has to stay private and only accessible to me and my supervisors. I can't afford to pay so I want free service. I…
Khurram Majeed
  • 2,291
  • 8
  • 37
  • 59
38
votes
4 answers

How can I get a list of sheets (name and "gid") in a Google spreadsheet using the Drive API?

I am trying to use Google Drive API (Python) to download some tabs of a spreadsheet file. Is the gids information in the file's metadata? What I am trying to do is (this may not be correct, please suggest) : file_metadata =…
38
votes
5 answers

Google Drive mime-types listing?

As per https://developers.google.com/drive/manage-uploads, it mentions See the API reference for each method's list of accepted mime types and size limits for uploaded files. I was unable to find mime type listing at…
MikeLim
  • 1,189
  • 1
  • 9
  • 11
37
votes
7 answers

Google Drive Offline Document File Location

Has anyone discovered where/how offline Google Documents are stored when using Google Drive in Chrome? They must be stored locally but where? Have tried the browser cache etc but can't see it unless I'm missing something very obvious! To clarify,…
pjpeers
  • 373
  • 1
  • 3
  • 6
36
votes
2 answers

Combine the split zip files downloading from Google Drive

I download 1 large folder 10 GB from Google Drive but it becomes several zipped files. I would like to combine the downloaded split zipped files from Google Drive with its original folder and sub-folder structure. The parents' folder contains 4…
Nguyen
  • 379
  • 1
  • 3
  • 4
36
votes
2 answers

Accessing Google Drive from a Firefox extension

I'm trying to access (CRUD) Google Drive from a Firefox extension. Extensions are coded in Javascript, but neither of the two existing javascript SDKs seem to fit; the client-side SDK expects "window" to be available, which isn't the case in…
retorquere
  • 1,496
  • 1
  • 14
  • 27
36
votes
2 answers

Google Drive HTTP 403 "Access Not Configured" error with DrEdit

I'm attempting to install the DrEdit sample app for python onto GAE. The app runs, but saving or opening a file results in an HTTP 403 "Access Not Configured Error". client.json has client_id and client_secret set per the API Access>Client ID for…
danielchalef
  • 1,067
  • 11
  • 12
35
votes
6 answers

Google Colab - Google Drive can´t be mounted anymore - Browser Popup (Google Drive for Desktop) instead of Link in the code output for authorization

Since yesterday I have had the problem that I can no longer mount my Google account. Normally, when I run it, I get a link to authorize myself with. Now, when the code is executed, an extra browser window is opened where I should authorize myself.…
Tim
  • 463
  • 1
  • 4
  • 7
35
votes
4 answers

Google drive limit number of download

I have obtain the download url via webContentLink (https://docs.google.com/a/onwardsct.com/uc?id=0ByvXJAlpPqQPYWNqY0V3MGs0Ujg&export=download) During testing, I try to download 28 times (testing) the same 24mb file using 3 different Google accounts…
simon
  • 371
  • 1
  • 3
  • 5
34
votes
4 answers

Google API error, but still works

Im getting this console error on my localhost when connecting to google drive API, but the picker I have configured in my script successfully displays my drive's contents: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided…
redress
  • 1,399
  • 4
  • 20
  • 34
34
votes
5 answers

Getting Server Rejected error when upload using Google Picker, Oauth2

We are trying to use google.picker to have our users upload files to our drive account (i.e., the user is not required to have a Google account to upload). We're trying to use regular Google accounts as application-owned accounts and got our…
onerobertreyes
  • 481
  • 4
  • 6
34
votes
4 answers

Upload to Google Drive without any UI?

I am looking to write a server application to upload files to Google Drive. I was previously using the Documents List API, but I see that is deprecated. I'd like to move to the Google Drive API, but that seems very restricted to using a web/OAuth…
Garry
  • 623
  • 1
  • 7
  • 11
33
votes
3 answers

How to list files in a specific folder in Google Drive API v3 PHP

I am searching for a way, how can I list files in a specific folder (with folder id) in Google Drive API v3. I used this function $service->files->listFiles() but It return all files in google Drive. Do you know which function can I use?
Bjørson Bjørson
  • 1,583
  • 1
  • 17
  • 31
33
votes
6 answers

UserRecoverableAuthException: NeedPermission

I tried to follow tutorial: https://developers.google.com/android/guides/http-auth. Code: token = GoogleAuthUtil.getToken(getApplicationContext(), mEmail, mScope); Manifest:
Sinigami
  • 449
  • 3
  • 20
  • 38
32
votes
2 answers

Google Colab API

Is there a Google Colab API? I'm looking to accomplish things like: Create users Create notebooks Share notebooks with users Retrieve the contents of a notebook
Will
  • 1,171
  • 2
  • 14
  • 26