Questions tagged [google-drive-realtime-api]

As of November 2017 Google deprecated the Realtime API, and it is unavailable for new projects. It will stop working on December 11th 2018. It provided collaboration as a service for files in Google Drive via the use of operational transforms. The API was a JavaScript library hosted by Google that provided collaborative objects, events, and methods for creating collaborative applications.

The Realtime API lets you, the developer, design a shared data model that looks just like a local, in-memory data model. You write code to manipulate maps, lists, and your own custom JavaScript data model objects. When your code makes a change to the data model on behalf of some user, the data model automatically changes for all the users on the document.

These collaborative data model objects work just like local in-memory data model objects, with one exception. Unlike a local JavaScript data model, a collaborative Realtime API data model may change as a result of edits that were made by someone other than the current user. As a result, applications need to attach listeners to a collaborative document so that the UI may be updated to reflect remote changes.

The Realtime API is based on the same collaboration technology used by Google Docs. Whenever a collaborative data model is modified, the change is applied immediately to the local, in-memory copy of the document. The API then silently sends a representation of the change to the server (called a "mutation") so that the change can be recorded in the document and communicated to other collaborators. The mutations have been carefully designed so that conflicts between collaborators can always be automatically resolved, so users will never have to see a message about edit conflicts.

Realtime data models are "eventually consistent." That means that if all collaborators stop editing, eventually everyone will see the same data model. However, we make no guarantees about when all the collaborators will see the changes or what order the changes will be delivered in.

See https://developers.google.com/drive/realtime

520 questions
3
votes
1 answer

What is the GwtDocumentBridge mentioned in the realtime drive docs?

The API docs give a tantalizing hint of GWT bindings for the realtime service, but I can't find other mention of them. Parameters: gapi.drive.realtime.GwtDocumentBridge bridge — The driver for the GWT collaborative libraries. I'm in the process…
Riley Lark
  • 20,660
  • 15
  • 80
  • 128
3
votes
1 answer

Is there an issue tracker for Google Drive Realtime API?

I am facing a bug with Realtime API of Google Drive SDK and I like to know if there is an issue tracker where I can check if that issue is registered and eventually fill a new one.
Alexandre Ardhuin
  • 71,959
  • 15
  • 151
  • 132
3
votes
2 answers

How to reproduce UserRecoverableAuthIOException on Android device?

When I debug with Google Drive API, I met this problem: First time when I call service.about().get().execute(); in my app, it will catch UserRecoverableAuthIOException and my code call startActivity. But after I confirm the auth dialog , it never…
3
votes
1 answer

Google Drive API without Ouath and receive files

We are building a web application that should get all files from a specific folder in our Drive (read only). The problem is that I can't find a way to access our files without using OAuth. Basically I would want to request our files using AJAX and…
Robert
  • 68
  • 5
3
votes
0 answers

Google JavaScript API's with phonegap

I'm using Google JavaScript API's SDK for a Google Drive web application. I want to convert this to a native app for iOS using phonegap. What Javascript origins should I specify in the API's console.
system64
  • 909
  • 1
  • 11
  • 27
2
votes
0 answers

I am not able to give permission to created folder in google drive using google drive APIs

I have been trying to create a folder with a service account using google drive APIs in google drive. I can see that folder in the google folder list API but not in the google drive GUI. Here is the code which I tried to create a google drive…
2
votes
1 answer

How many hits can google drive bare if i use it as cloud database?

I am working on an app where there is 1M hits every day.I want to use google drive as database .Can google drive bare this much traffic??
2
votes
0 answers

Google drive V3 api files: watch

I am using the v3 drive files: watch api: files.watch When I use a spreadsheet from my drive, I am receiving notifications. However it doesn't work when a spreadsheet from team drive is used. I have tried using the supportsTeamDrives: true as…
2
votes
3 answers

Check user contribution by number of words in Google Doc

Is there any API form in the google drive API that enables us to retrieve any word that a user has edited in a specific google doc file or any word that they had deleted in a specific doc? This is due to that I would like to create a software that…
2
votes
0 answers

Unable to retrieve a high quality image from google drive API

Im trying to launch an application with a serverless architecture using AWS Lambda and a React frontend. The Lambda function works fine and is currently retrieving the data from my google drive. Unfortunately, The main purpose of this data is to…
2
votes
2 answers

I am trying to download files using PowerShell where target file name is not known?

I'm using following script to download files using powershell. $folder = "c:\temp\" $userAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1" $web = New-Object System.Net.WebClient $web.Headers.Add("user-agent",…
2
votes
4 answers

Error Connecting to Google Server using Script Editor

I am trying to use the Google Sheet's Script Editor to write a script for a Dependent List using the following script: function setDataValid_(range, sourceRange) { var rule = SpreadsheetApp.newDataValidation().requireValueInRange(sourceRange,…
2
votes
1 answer

Getting error when accessing a sheet in Google Drive through API

I'm using the spreadsheet v3 API [https://developers.google.com/sheets/api/v3/data#update_multiple_cells_with_a_batch_request] to update some cells in a row of specific worksheet. It works most of the time, but I'm also getting the following…
Ranjani
  • 1,015
  • 1
  • 9
  • 15
2
votes
0 answers

Accessing google drive by running cron job

Here I am using google drive to backup my data on drive and for that I wrote a script which i want to run through cronjob. but it needs access_token to access google drive. I am keeping access token in my db and providing it to backup file but that…
Waev
  • 21
  • 2
2
votes
1 answer

Google Spreadsheet API v4 In Java. Trying to have unprotected cell range on a document that can be viewed to anyone with link

So I want to be able to create a sheet, populate it with some data, and create a column used for input, but I want to protect all other cells. I am using Java / eclipse to run the API. The issue I am having seems to be a bug of some kind. When I…