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
46
votes
2 answers

Error: invalid_client no registered origin

I have installed the Google Drive Realtime API sample files on my web server, following these instructions, including generating a client_id in the Cloud Console and inserting it into the index.html file. When I visit that page and click the button…
30
votes
3 answers

Google docs - Access text changes realtime

Goal Our users work in Google Docs. The text they write will be read to them as they type using text-to-speech. It should work across as many platforms and browsers as possible. Our solution This seems to fit the Google Apps Script, it works on…
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
18
votes
9 answers

Auto height for Iframe containing embedded / published Google Doc

I have an iframe with a published Google Doc. The contents of that doc are subject to change, so I want to auto adjust the height of the iframe based on its content. I found some solutions for this, but they all require access to the head of the…
celalalt
  • 231
  • 1
  • 2
  • 7
15
votes
2 answers

gapi.load versus gapi.client.load

In Google's JavaScript API's, what's the difference between gapi.load() and gapi.client.load()? How interchangeable are they and when should I use one versus the other? I see both are used in the Google Drive Realtime API sample code.
Brian Slesinsky
  • 2,866
  • 2
  • 16
  • 14
13
votes
3 answers

Google Drive API OAuth 2.0; Error: origin_mismatch

I'm having trouble creating a valid google drive API for my website. I may sound like a complete noob, but I created a file called quickstart.html in my main ftp directory and copied and pasted the code from…
12
votes
1 answer

Angular 2 with Google Drive Realtime API

I'm looking to create a new application based on the Drive Realtime API and want to do it with the shiny new Angular 2 framework. However, I'm kind of stuck trying to figure out how to best integrate the APIs and philosophies. I can't find any…
Gary
  • 821
  • 8
  • 20
12
votes
2 answers

Google Realtime API without Google Authentication

I am a bit confused about the Google Drive Realtime API. I'm trying to build a whiteboard like app where users can collaborate in real-time. I figured Google's Realtime API would be perfect for this. While the Realtime API can accomplish what I want…
Sameer Anand
  • 133
  • 4
11
votes
1 answer

Do I have to share Google Drive folder for service account access?

I have created a service account for use with the Google Drive API as outlined here: https://developers.google.com/drive/delegation After all the reading I've done, my impression is that this service account should act on behalf of the actual…
edeneye
  • 447
  • 1
  • 4
  • 12
10
votes
4 answers

How to list of more than 1000 records from Google Drive API V3 in C#

This is the continuation of original question in this link. Through the below code, I can able to fetch 1000 records but I have in total 6500++ records in my drive. Searching google but unable to find out the correct solution. As per reference, the…
Arun
  • 728
  • 4
  • 16
  • 30
10
votes
2 answers

How to get "Shared with me" files in google drive via API?

I think that I should use files.list request with "q" parameter. I don't know which value of q parameter I should to set.
Ildar
  • 3,808
  • 7
  • 45
  • 81
10
votes
3 answers

Google Drive and Docs API

I am curious to know with the release of Google Drive, will Docs API be obsolete? My understanding is the only way to see your documents is by using Docs API, as Drive API only gives access to the files created by a Google Drive app (and only viewed…
9
votes
2 answers

ReferenceError: "Drive" is not defined. (line 16, file "Code") in google app script

When I try to use Google drive reference it always shows ReferenceError: "Drive" is not defined. (line 16, file "Code").
9
votes
2 answers

Error when displaying an image from Google Drive using the WebViewLink in Safari and Internet Explorer for authenticated users

I am working on an intranet that requires user authentication to access private folders on the logged in user's Google Drive. Images are pulled from folders and displayed in the intranet using the image's WebViewLink. This works fine in Chrome and…
7
votes
3 answers

embed google drive picker as a part of page

I want to embed/implement Google Drive as a part of my page; like a normal grid or a table instead of having as a popup. I have took a reference from GoogleAPI page. Also, researched many things for my requirements but nothing would worked for…
1
2 3
34 35