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

How do the permissions and triggers work in Apps Script API?

I have read and re-read the docs (here) and here and related. Is there some other documentation that will help me get a better understanding of what type of permissions require what type of formatting, etc? The puzzle I'm trying to solve is this:…
0
votes
1 answer

Google Drive API - Creates duplicate folders

I am developing a Java program that will upload documents to Google Drive. I found that if I try to upload to an existing folder, that I have to make sure that it is case sensitive to the existing folder. If my existing folder is on the Root…
0
votes
1 answer

Using Google Drive API/SDK to insert new folders and files

I would like to automate the following process using c#: 1. Take a file from a predefined folder 2. Upload said file to Google drive account folder, creating new folder if necessary Determine permanent link of said folder store said link in a…
-1
votes
1 answer

Can we retrieve data back from Google Drive API in Android?

I'm able to successfully add my images to google drive, using the API provided by Google Drive. Can I now retrieve it back to my App? If yes, Can anyone help with how to do that?
-1
votes
2 answers

How we can create the folder in google drive by using java

I need to create the folder in Google drive by using Java. Does any one tell me the example or how to create the folder in Google drive. Thanks in advance...!!! My program package net.sf.dynamicreports.examples; import…
-1
votes
2 answers

Pull data from multiple google drive sheets into one

I am a sales manager of multiple locations, each location uses a google drive excel sheet to record their results for each customer that they serve. Is it possible for me to be able to pull the data from these sheets into one sheet that will allow…
-1
votes
1 answer

How to Create/Edit google drive document using google drive api with php

How can we Create and Edit Google Drive document using Google drive API from our PHP application? I have seen this working on box.com. Google has also provides drEdit example app but I am not able to make it working, can you help me or provide me…
Dipak
  • 495
  • 1
  • 4
  • 12
-1
votes
2 answers

Google Drive, meta-data tag in app's AndroidManifest.xml?

I used the Google Drive API to transfer files on device to Google Drive, but following error occurred after updated to new version.(android 4.4) java.lang.IllegalStateException: A required meta-data tag in your app's AndroidManifest.xml does not…
-2
votes
1 answer

GDRIVE API with python

I'm doing a little executable where I upload a file on google drive, but that's not exactly what I wanted. I would like to do a versioning of files on google drive, so as not to take up too much disk space. My code for upload files def…
-5
votes
1 answer

Google drive file preview with api access token in iframe

How we can get preview of Google drive files in web without login into Google account. In current scenario only public files are visible through embed link, we need to show preview of file in iframe which are not public and without login. We have…
1 2 3
34
35