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
27
votes
5 answers

Gdown is giving Permission error for particular file,although it is opening up fine manually

I am not able to download file using gdown package.It is giving permission error. But when i am opening it manually.It is giving no such error and opening up fine. Here is the code i am using and link import…
jatin rajani
  • 495
  • 1
  • 6
  • 15
26
votes
5 answers

backup files to google drive using PHP

I have a server and a domain name on GoDaddy. I want to create a backup for my files to be uploaded on Google Drive So that all my files and my database have their data on Google Drive. I use PHP and MySQL for my database After some research, I…
mohamad mohamad
  • 613
  • 9
  • 24
26
votes
5 answers

Create File with Google Drive Api v3 (javascript)

I want to create a file with content using Google Drive API v3. I have authenticated via OAuth and have the Drive API loaded. Statements like the following work (but produce a file without content): gapi.client.drive.files.create({ "name":…
Geminus
  • 655
  • 1
  • 6
  • 10
26
votes
1 answer

Google Drive - Root Folder Id

Is the Google Drive's Root Folder Id permanent? Will the Root Folder Id remain the same as long as the account exists?
bipin
  • 353
  • 1
  • 5
  • 7
26
votes
3 answers

Open a Google Drive File Content URI after using KitKat Storage Access Framework

I am using the Storage Access Framework for android 4.4 and opening the file picker. Everything works except when choosing a file from Google Drive, I can only figure out how to open it as an input stream, but I would like to get a java File…
Keith Entzeroth
  • 2,049
  • 1
  • 18
  • 22
26
votes
1 answer

How could I change google drive folder in "C:/User Name/Google Drive" to somewhere else

I've installed google drive app on my windows. How could I change custom folder in "C:/User Name/Google Drive" to somewhere else and how to sync it.
nuhunbae
  • 291
  • 1
  • 3
  • 4
26
votes
5 answers

Get shared link through Google Drive API

I am working on an app using Google Drive. I want the user to be able to share files by link, setting the permissions to anyone and withLink as described in the Google Developers documentation. However, I cannot figure out what link to share. When I…
Jon Saalbach
  • 365
  • 1
  • 4
  • 7
26
votes
6 answers

Google Drive API doesn't play well with ProGuard (NPE)

Currently, I'm having experience that, a piece of code, which makes use of Google Drive API is running fine without introducing ProGuard. However, after introducing ProGuard, I'm getting the following run-time error. at…
25
votes
2 answers

Can I use Google Drive as Database?

Can I use Google Drive as a per user database? I need private online database storage for each user of my app. For example, user 1 needs to store entries in a database table with a list of his online meetings. User 2 also needs to store entries in a…
Steve Robson
  • 259
  • 1
  • 3
  • 4
25
votes
3 answers

Google Drive raw data?

Is there any URL google has that contains the raw data for the file? using https://drive.google.com/file/d/FILE_ID just takes you to a 'share' section of the file... say I have a .js file on GDrive. If you go to their share link, they have a share…
parzivail
  • 361
  • 1
  • 3
  • 9
25
votes
3 answers

Gradle global build directory

I want to know is it possible to configure Gradle to use one global build directory for all projects? I need this because I store all my projects in Google Drive folder (for backup and fast access from other devices) and when I build project Google…
mixel
  • 25,177
  • 13
  • 126
  • 165
25
votes
9 answers

How to Create a Spreadsheet in a particular folder via App Script

Can anybody help me out, I want to create a Spreadsheet through App Script in a particular folder. How to do that. Presently I am doing as follow: var folder = DocsList.getFolder("MyFolder"); var sheet = SpreadsheetApp.create("MySheet"); var file =…
Hari Das
  • 10,145
  • 7
  • 62
  • 59
25
votes
5 answers

Upload CSV to Google Drive Spreadsheet using Drive v2 API

How can I upload a local CSV file to Google Drive using the Drive API v2 so that the uploaded file is in the native Google Spreadsheet format. Preferably in Python, but a raw HTTP request will suffice. What I tried: request body content-type:…
Zuza
  • 2,136
  • 4
  • 20
  • 22
25
votes
1 answer

Can i get the list of associated keywords to a specific file,

i.e. for an image that OCR is performed, i want to be able to fetch the list of text on the image. Is this possible using the SDK? If so how, and if not are there any suggestions as to using google's OCR to fetch words in an image.
Ajibola
  • 1,218
  • 16
  • 28
24
votes
7 answers

Excluding node_modules folders from syncing with Google Drive

Is there any way to exclude node_module folder from getting sync with Google Drive? If it's not possible with Google Backup and Sync, is there any other app for Mac, which can do that?
user1941537
  • 6,097
  • 14
  • 52
  • 99