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

Google OAuth gapi.auth.authorize X-Frame-Options: SAMEORIGIN

Start ~2wks ago a few customers have started hitting an issue that prevents them from authenticating with Google services. All of the instances that I have encountered so far appear to be on non-gmail domains. The issue appears to be (see…
7
votes
1 answer

Google Drive properties.insert Error

Running the following code to create a property in Google drive API... been working for about 10 months then Friday it began to fail... Service.Properties.Insert(New Google.Apis.Drive.v2.Data.Property() With {.Visibility = "PUBLIC", .Key =…
7
votes
1 answer

Copy file into a specific parent folder with Google Drive API?

I'm using Python 2.7 and a service account to copy a file in Google Drive into another folder based on its title. This requires me to execute five (5!) commands: Find file ID by title. (files().list) Find parent folder ID by title…
Neil C. Obremski
  • 18,696
  • 24
  • 83
  • 112
7
votes
1 answer

Google Drive Realtime API for iOS

I want to implement realtime collaboration in my iOS app using Google Drive and the new realtime API. I know that I can set up a web view in Objective-C and set up two-way communications between the web view and my native app, and therefore use the…
7
votes
1 answer

Can you use Google Docs as the text editor for your own application?

I know Google Drive has an API. Is there a way to use it to essentially use Google Docs as the rich text editor for an application? I.e. I would like to be able to do the following: Create a document. Edit a document as normal, but embedded within…
6
votes
2 answers

Cannot save anything in Google API's Drive UI Integration

I am using chrome and after clicking Drive API, enabling it, and in the tab Drive UI Integration nothing can save! I've tried refreshing, restarting and on multiple computers. I type my application name in and change settings, but the save button…
Nearpoint
  • 7,202
  • 13
  • 46
  • 74
6
votes
2 answers

Google Drive File Picker random sign-in error

Occasionally (sporadically) when the Google Drive file picker is triggered in our app by a properly authenticated user, the picker fails with a message that they need to sign-in to Google (note old Google logo) - clicking this message's Google…
jasas1
  • 101
  • 8
6
votes
2 answers

Google Drive API - Can I integrate Google Docs in my web application?

One of the requirements for the web application I'm creating is that users should be able to create and edit documents. I've been searching around and I came across the Google Drive REST API, however I'm a little unsure about what it can do. From…
RoyalSwish
  • 1,503
  • 10
  • 31
  • 57
6
votes
2 answers

Is there a way to download Google Plus photos from the command line?

I have a large number of photo albums on Google Plus. I am looking for an efficient way to download them. Had I put them on Google Drive, I could have used skicka, which has a few annoyances but overall works very well. I'm looking for a similar…
user1978019
  • 3,008
  • 1
  • 29
  • 38
6
votes
1 answer

Google Drive Realtime API OAuth2 Refresh Errors

Over the last couple days I've been seeing some increasingly problematic issues with a long running realtime app. I've walked through the steps below and the code snippet at the bottom contains additional debug info from the app. When the page first…
6
votes
1 answer

Convert PDF to any with Google Drive API

I'm trying to convert PDF to any allowed format but response does not content exportLinks after a pdf file was uploaded. I've already tried many ways to manage for to get exportLinks. Other doc formats can be uploaded and be exported successfully. I…
6
votes
2 answers

Specify a user display name when opening a Google Drive document anonymously

I'm doing some research for an application using Google Drive documents, but I'm running into problems with anonymous access and the user display names in the documents. Ideally, I'd like to programatically create a Google Drive document and set the…
6
votes
3 answers

How to let anonymous users edit a Google Drive Realtime document?

I want to create a web page that uses Google Drive Realtime API that allows users to anonymously edit several text fields. Because more than one user may be accessing the page simultaneously, I want to prevent someone's edit from being overwritten…
5
votes
1 answer

Google Drive API Delete Python

How do you delete a file in your google drive with the Google Drive API? I’m using v3 and I’ve literally tried everything and nothing’s been working. I believe the ones I’ve tried to be outdated, what is the current way? Update: I wasn’t really…
5
votes
0 answers

How to test google drive API python client

I currently have a google drive API client in my django project that works as expected. import unittest from unittest import mock DRIVE_API_VERSION = "v3" DRIVE_API_SERVICE_NAME = "drive" DRIVE_AUTHORIZED_USER_FILE =…
chidimo
  • 2,684
  • 3
  • 32
  • 47
1
2
3
34 35