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
32
votes
0 answers

Blame for Google Drive documents

I am trying to write Google document add-on which will help me to check who wrote particular part of the document, in my work every day several people edit the same document and very often instead of putting the names they write sentences like: "I…
anieblas
  • 499
  • 3
  • 6
32
votes
10 answers

401. That’s an error. Error: invalid_client The OAuth client was not found

I am working with Google Drive File Picker by following this Google Drive File Picker Example demo project. I have generated API Key and Client Id. But when I run the project I am getting following error That’s an error. Error:…
user3653474
  • 3,393
  • 6
  • 49
  • 135
32
votes
2 answers

Google Drive 403 rate limit on insert sometimes succeeds

tl;dr A Drive API call returns a failure status (403) even though the request was successfully processed. I insert 100 files in a loop. For this test I have DISABLED backoff and retry, so if an insert fails with a 403, I ignore it and proceed with…
pinoyyid
  • 21,499
  • 14
  • 64
  • 115
31
votes
8 answers

WARNING: unable to change permissions for everybody:

When running the Java quickstart sample at https://developers.google.com/drive/web/quickstart/java?hl=hu in NetBeans, I'm receiving the error code: Jun 04, 2015 12:12:11 AM com.google.api.client.util.store.FileDataStoreFactory…
quibblify
  • 395
  • 2
  • 6
  • 13
31
votes
3 answers

How to send files over SSH/SCP to Google Drive?

We have Centos, there is a directory with sql backups. How we can send those backups to Google Drive using cron schedule?
Serge
  • 341
  • 1
  • 4
  • 7
30
votes
7 answers

Google spreadsheet direct download link for only ONE sheet as excel

I was wondering if its possible to download say only sheet 1 of a google spreadsheet as excel? I have seen few SO posts that show the method to export the WHOLE sheet as excel, but I need to just export one sheet. Is it at all possible? and if yes,…
rahulserver
  • 10,411
  • 24
  • 90
  • 164
30
votes
3 answers

How to upload a file to Google Drive using a Python script?

I need to backup various file types to GDrive (not just those convertible to GDocs formats) from some linux server. What would be the simplest, most elegant way to do that with a python script? Would any of the solutions pertaining to GDocs be…
GJ.
  • 5,226
  • 13
  • 59
  • 82
29
votes
10 answers

Google Docs viewer returning 204 responses, no longer working, alternatives?

UPDATE 2016-11-16 9:53am EST It appears many people are still seeing 204 responses even though Google has claimed to have "fixed" the problem. When I myself tested the loading of a document 50 times, 3 of those times Google returned a 204 response.…
Art Geigel
  • 1,915
  • 3
  • 22
  • 24
29
votes
4 answers

Google drive : redirect_uri_mismatch

I followed this basic tutorial, but I get: Eroare:redirect_uri_mismatch The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a registered redirect URI In my googlings I understand there is something wrong in some settings I…
user1540471
  • 421
  • 2
  • 5
  • 7
29
votes
9 answers

Is is possible to get a permanent URL to a file uploaded to Google drive?

I can't find the answer to this in the API docs or elsewhere. I see in the docs says you can get a downloadURL of a file, but it refers to it as a 'short lived URL'. What does that mean? I need to upload images and get a permanent URL of that…
user1459246
  • 291
  • 1
  • 3
  • 3
28
votes
4 answers

Google Drive Picker - Developer Key is Invalid Error

I started to learn Google Drive Picker API and started with my localhost (I have created my client id and browser key for the domain http://localhost/ and my files locations are localhost/ch1.html etc. Here's the script I wrote in the body part of…
Harshit Laddha
  • 2,044
  • 8
  • 34
  • 64
28
votes
2 answers

Google Drive api scope and file access (drive vs drive.files)

I have created two refresh tokens for me: one for SCOPE = 'https://www.googleapis.com/auth/drive' and another SCOPE = 'https://www.googleapis.com/auth/drive.file' I'm trying to get information about files (using get method) Some files I can get…
WHITECOLOR
  • 24,996
  • 37
  • 121
  • 181
28
votes
4 answers

What's the right way to find files by "full path" in Google Drive API v2

dear all I'm trying to find a list of documents by "full path". And after reading the API reference, it seems to be a complex task. Assume my path is something like /path0/path1/path2/... List children of root folder and find all children with name…
James Gan
  • 6,988
  • 4
  • 28
  • 36
28
votes
6 answers

How to move files and folders using google drive API?

I am trying to use Google drive API to carry out simple tasks like Moving files across folders. List item Moving folders. As far as I could find Google drive API does not provide a way to move files across folders. With /parent and /children API…
NitinJ
  • 351
  • 1
  • 3
  • 9
28
votes
2 answers

Google Drive\Docs API for Android

I integrated Dropbox with my app in a matter of hours as the SDK was clearly described and had good examples of usage. Google Drive seems to only have a "one size fits all" Gdata SDK which is very heavy (with the many dependencies, it triples the…
user1358144