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
4
votes
3 answers

Google APIs Ruby Client (gem) Error `uninitialized constant Google::APIClient::UploadIO`

This has certainly had me baffled for a couple hours. I've bootstrapped my application as detailed by Baugues to the point that authentication via OAuth2 works and I'm just testing things out in the session#create (callback) action. Here's some…
Michael De Silva
  • 3,808
  • 1
  • 20
  • 24
4
votes
2 answers

How to access revision history of a spreadsheet using GAS?

Is it possible to access revision history data of a spreadsheet directly from Google Apps Scripts? If so, how? I would like to do two things: Change the username logged for each revision to the actual user running the script and not the script…
4
votes
1 answer

Recover video url through google drive api in order to stream the video in an html5 player

I see that google drive use a flash player in order to stream uploaded video. Do you know if google drive api provide an absolute url to the video in order to use an html5 player to stream the video?
Luca
  • 848
  • 1
  • 14
  • 33
4
votes
4 answers

Google Drive SDK - Java sample not working

I'm trying to get familiar with the Google Drive API using the official Java sample. However, after wasting a few hours and attempting to set the sample up two times, I'm still not able to use it as expected. Instead of displaying a file's content…
TomTasche
  • 5,448
  • 7
  • 41
  • 67
4
votes
2 answers

Google Drive API: list collections

How can we manage Google Drive using Google Drive API, which requires list collections and its children create file and collection rename/move/copy files and collections
Bao Le
  • 16,643
  • 9
  • 65
  • 68
4
votes
1 answer

Real-time syncing with Android app and Google Drive

I'm wondering if it's feasible to utilize Google Drive to perform real-time syncing of custom documents between different users on different devices (Android, iOS, web, etc). What I'm talking about is similar to the real-time collaboration…
ashughes
  • 7,155
  • 9
  • 48
  • 54
4
votes
3 answers

Early Google Drive access to test applications?

I would like to add Google Drive integration to an application immediately. Is there a means to create or access some type of test account? I have requested Google Drive on both my personal and application Google accounts, both of these requests…
tliebeck
  • 816
  • 1
  • 8
  • 19
4
votes
1 answer

Can't register an app with Google Drive in the APIs Console

I'm trying to register an app in the APIs Console to test the Google Drive SDK. However I can't find anywhere in the APIs console (after having the Drive SDK enabled) where I can fill in additional information as instructed on the Register an App…
Wu-Man
  • 898
  • 9
  • 11
4
votes
1 answer

Image Thumbnails from Google Drive API

I was wondering if the Google Drive API is going to generate multiple Thumbnail images for uploaded Photos to Google Drive in the near future. I am a developer of Cloud Photos (iOS App), and our integration with Dropbox and Facebook (coming soon) is…
Jonathan Norris
  • 101
  • 1
  • 5
3
votes
2 answers

Google Drive uc?id= no longer works

I am trying to write code to get the direct urls of images in a public Google Drive folder and embed them. Until a few minutes ago everything has been working and using the uc? trick gives the raw image so I can embed it. However now it is sending a…
433MEA
  • 100
  • 8
3
votes
1 answer

Downloading Excel file with Google Drive API doesn't bring lastest changes/version

When I use Google Drive API to download my Excel files, it will send and outdated version. The way to reproduce this is to open the Excel file in Google Sheets Editor, than add new tabs, then download the File through the API. Most of the time it…
Mauricio
  • 2,552
  • 2
  • 29
  • 43
3
votes
1 answer

Google-Drive-API File not found using FORM_ID

I'm a novice Python hobbyist programmer who is trying to automate some vocabulary tests for my students. Everything in the below code works except for sharing it with the list of emails. I know for a fact that the Drive ID is the same as the Forms…
Mikitz06
  • 340
  • 3
  • 14
3
votes
1 answer

How can I create a Google Doc (or sheet or slide) file from a template through Google API

The title says it all. I want to use the GDrive API (or maybe the Google Doc, sheets or slide APIs) to create a document based on a template from the Template Gallery. I already know how to create a Google Doc with GDrive API. But it's a blank one.…
Patrick M.
  • 750
  • 3
  • 10
  • 21
3
votes
1 answer

Flutter App Cant Authenticate to Google Drive API Using google_sign_in Package

My Flutter app (Android variant) is unable to authenticate to Google Drive API using the google_sign_in package (ver 5.4.2) along with the extension_google_sign_in_as_googleapis_auth package (vers 2.0.7). The exact error that I am getting…
Jose
  • 311
  • 2
  • 9
3
votes
1 answer

How to delete a file in a google drive shared drive folder using php?

All I need is to delete a file which is inside my shared drive folder using google/apiclient using php , this is my code below . session_start(); require __DIR__ . '/vendor/autoload.php'; // ready the API to upload to drive use Google\Client; use…
jasonzs
  • 55
  • 4