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
17
votes
2 answers

Google Drive GET_CONTENT intent read file

I have an app on android that does some file sharing using cloud storages like dropbox. To start sharing I throw android.intent.action.SEND. On the list that is shown I see the Google Drive app (previously installed), so I try sending the file to…
khusrav
  • 5,267
  • 5
  • 27
  • 38
17
votes
4 answers

Where can I find the price list for Google Drive API?

The Google API Console lists 500,000 / day as the "Courtesy limit", and provides a form allowing one to request more. My assumption is that there will be a cost attached to a higher request limit; similar to the Google Maps pricing Where can I find…
David Laing
  • 7,605
  • 10
  • 33
  • 44
17
votes
2 answers

Insert a file to a particular folder using google-drive-api

I tried as given below. But the file is going to root directory(My-Drive). var metadata = { 'title': fileData.fileName, 'mimeType': contentType, 'parents':["0B6NmmF3ovpsbExuOEc1R2JzSFEp"] // It is one of my folder's id. }; var base64Data =…
Mohammed H
  • 6,880
  • 16
  • 81
  • 127
17
votes
1 answer

Documents List API Regression: Updating a document (with conversion) loses images

Something seems to have recently broken with the Google Docs conversion when using the documents list API. Updates made to existing document entries won't be converted into the Google Docs format correctly and images in the document will not…
KabukiAdam
  • 241
  • 2
  • 5
17
votes
2 answers

How to programmatically manipulate native google doc files

Is it possible to programmatically edit a native Google document, say to make certain words bold or hyperlinks? I know I can export that to some format like DOC or ODT, do the changes and put back. But tried this way manually and saw that I lost the…
Sanjay
  • 8,755
  • 7
  • 46
  • 62
17
votes
4 answers

Getting a list of files by folder on Drive SDK

I am trying to build a web UI for users to navigate his/her Google Drive and select one or more documents to be referenced later on in a website from a DB. I am currently building a web interface using PHP. The problem I am facing is that I cant…
MightyMouse
  • 351
  • 1
  • 3
  • 12
17
votes
3 answers

Use Google Drive (or any cloud storage) as development workspace?

This somewhat applies to all cloud storage, but specifically I'm wondering: Is it practical to use Google Drive as a root development folder? For example with setup like this: C:\Google Drive \Projects\... \Photos\... …
Terry
  • 14,099
  • 9
  • 56
  • 84
16
votes
3 answers

How to import functions of a jupyter notebook into another jupyter notebook in Google Colab

I would like to import functions of a Jupyter notebook (ending .ipynb) into another Jupyter notebook. Both notebooks are located in Google Drive in the same file. The notebook in which the functions of the other notebook should be imported, is…
16
votes
1 answer

Google pydrive uploading a file to specific folder

I am trying to upload a file to my Google drive, the code below works. How can I specify to which folder to upload to i.e drive---shared with me--csvFolder from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive gauth =…
programmerwiz32
  • 529
  • 1
  • 5
  • 20
16
votes
2 answers

Google Drive API - limit API access to single folder?

My app uses Google Drive API to read files that a user has uploaded to their Drive storage area, and to write files and folders into this same directory. The user logs in with their own account/credentials. My current understanding is that the only…
Ernie Thomason
  • 1,579
  • 17
  • 20
16
votes
2 answers

How to upload file to google drive with service account credential

I wanted to upload the files to my Google Drive using a Google service account credentials. I downloaded credential as a JSON file from Google Developer Console, and got credential from it. Here is my code snippet. google_drive_service =…
16
votes
3 answers

AWS LAMBDA "errorMessage": "[Errno 30] Read-only file system: 'drive-python-quickstart.json'"

i have problem with googledrive credentials in AWS Lambda , after i deploy my .zip file before calling the function on the local machine , all is work , but after i deploy zip in AWS after ~30min i having lambda function error "errorMessage":…
16
votes
3 answers

Transfer files from dropbox/drive to Google cloud storage

We are planning to implement a feature to let customers browse their images in their own google drive or dropbox accounts (within our app), and select ones they wanna use in our app. Then, we will save these images into our Google cloud storage…
Sen
  • 195
  • 1
  • 10
16
votes
4 answers

Google Drive API V3 (javascript) update file contents

I want to update the contents of a Google doc using the Google Drive API V3 (javascript): https://developers.google.com/drive/v3/reference/files/update I'm able to update the file metadata (such as the name) but the documentation doesn't include…
strangeMethod
  • 161
  • 1
  • 5
16
votes
3 answers

get file content of google docs using google drive API v3

Is there any way to get the content of native files (Google Docs) using Google Drive API v3? I know API v2 supports this with the exportLinks property, but it doesn't work anymore or has been removed.
Johnny
  • 473
  • 1
  • 4
  • 10