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
0
votes
1 answer

Unable To Upload File to Google Drive Using Tutorial (Drive App on Android)

I am trying to get the following tutorial to work: https://developers.google.com/drive/quickstart-android. After following all the steps and running the code, I get the following error: '' I've tried doing the project twice to see if I had…
jpCoder411
  • 207
  • 3
  • 11
0
votes
1 answer

Google Drive API - Change "Shared" setting

I'm building an API that allows users to have access to the list of files hosted on google drive, and I'm reading documentation to see if there are enough resources to make it possible. My idea is to allow user to update the visibility of a single…
0
votes
2 answers

Is there a way to prevent that the realtime model gets recreated when file changes on drive?

When a file changes on Google Drive the realtime model is getting deleted and a new one gets created. Is there a way to prevent this behaviour to be able to update the existing model with the new content of the file stored on drive?
dflorey
  • 1,828
  • 3
  • 19
  • 31
0
votes
1 answer

Is a de-obfuscated version of the realtime api available?

I'm running into issues with the realtime API and I'm unable to track down the root cause due to the obfuscation of the realtime library. All I can see in the console is something like this when loading the document: TypeError: a.b is…
dflorey
  • 1,828
  • 3
  • 19
  • 31
0
votes
1 answer

how to get google drive Storage Quota

I am using Google Drive API in android for listing, uploading and downloading files of Google Drive and I have successfully implemented it. Now i want User Storage Quota like how much space user has used and how much is left. Can any one suggest me…
qulfille
  • 208
  • 3
  • 13
0
votes
1 answer

How long will realtime sessions stay active after disconnect?

I try to close the realtime document properly when the user closes the browser window. But nevertheless the collaborators that closed the document still appear in the realtime model. For how long will disconnected sessions remain in the realtime…
dflorey
  • 1,828
  • 3
  • 19
  • 31
0
votes
1 answer

How to integrate Google Realtime Playground with Android App?

I am in serious need to any tutorial for integrating Google Realtime Playground with Android App. I know it is possible as people has done this: https://play.google.com/store/apps/details?id=com.goodow.realtime.android.playground I've found the code…
0
votes
1 answer

Google Drive API - File have childrens or not

I get files from google drive, like that. The result of Folders. ok, I have List result, so I want to find if result(i) have children with application/vnd.google-apps.folder mime type or not. in the other words, method which checks: if current …
0
votes
2 answers

Google Drive File Download Through Picker Always Returns File Not Found

I've now spent hours making this work and I'm running out of documentation to read on how to get such a simple process to work correctly. Here's my ideal situation. I have a javascript version of the Google Drive picker (too me a couple hours to…
n0nag0n
  • 1,575
  • 1
  • 17
  • 25
0
votes
1 answer

Google Drive API Change Ownership oAuth

I have created an oAuth2 Google Drive application and am creating new files under the developer.gserviceaccount.com service account. I would like to change ownership to another account in the domain who owns this service account. I have the file id…
Darth Jon
  • 413
  • 8
  • 18
0
votes
1 answer

How to remove an IndexReference?

I'm still not sure if index references are stored with the realtime model. There is no method to retrieve all references registered on a CollaborativeString/-List. How to get rid of index references without modifying the string/list? I don't find a…
dflorey
  • 1,828
  • 3
  • 19
  • 31
0
votes
1 answer

DrEdit sample Access Not Configured Error

I am trying to write my first app using Google Drive API and Drive SDK. I am trying to open file from google drive. Here is my code: if(isset($_GET['state'])){ $json = $_GET['state']; $obj = json_decode($json); $idTab = $obj->{'ids'}; …
0
votes
1 answer

how to upload file at google drive in android when i implement throght it gallery

i am working on google drive and try to intrgate in my app.lots of thing i have done. first i craete SH1 key and then enable the drive api and then genrate the APP key.now i have implement this link but when i pick the image from gallery it…
0
votes
1 answer

Conflict (409) when creating new file

When creating a new realtime model for a given file with two accounts at more or less the same time I get this error: Failed to load resource: the server responded with a status of 409 (Conflict)…
dflorey
  • 1,828
  • 3
  • 19
  • 31
0
votes
3 answers

Google Drive API - "Resource metadata required" in inserting comments to a file even though resource is specified

I'm trying to add a comment to a Google Drive document - the auth tokens and client IDs are all correct (trying to do everything else works), but when adding a comment - I get an error: code: 400, message: 'Resource metadata required', data: …
Edward Sun
  • 1,541
  • 3
  • 15
  • 26