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

Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup. usageLimits exceeded

What does it mean? I have used following scopes for accessing google drive. 'https://www.googleapis.com/auth/drive.metadata.readonly', 'https://www.googleapis.com/auth/plus.login', 'https://www.googleapis.com/auth/userinfo.email', …
2
votes
1 answer

Getting No response from google drive javascript api

I'm using google drive javascript api(v2) in my reactjs project. And I'm using this function to get files from google drive. this.getProjectObjects = function(query, callback) { var request = gapi.client.drive.files.list({ corpus :…
Bill Kim
  • 31
  • 1
2
votes
0 answers

Search folder in google drive by its name and list its content in android

What I want to do I have created the folder through pragmatically in android and done it successfully. Now I want to show the content/ list the files and folders in it(I know in starting it will be empty) I am searching the folder by its name…
2
votes
1 answer

How to Hide/ByPass Authoriaztion Pop Up while accessing Google Drive API

I am using Google Drive API's using JAVA for getting drive files, i want to create a background job which will fetch the google drive files without any user interaction (eg asking for user to explicity Authorize). In the example given below by…
ammu
  • 864
  • 2
  • 13
  • 27
2
votes
1 answer

get public shareble link after uploading file to google drive using nodejs

i want to upload files to google drive using nodeJS as backend. I have used google drive API v3. I get the file id and type in response after uploading a file. drive.files.create({ resource: { name: 'Test', mimeType:…
2
votes
1 answer

Google realtime Model update onFileLoad

I see that the workflow is to start authrorizer, giving it file loader. So, we have a sequence of callbacks, onAuthrorized => start loading file => doc.getModel() on file load. Here they say how you get the model. But, I also see that…
2
votes
0 answers

Realtime API Client Reconnection Failure

We've been seeing our realtime documents not reconnecting themselves properly for some time now after disconnecting/connecting WiFi. In particular Safari has a 100% success rate at reproducing this issue for us. Chrome also is susceptible to this…
Grant Watters
  • 660
  • 4
  • 16
2
votes
2 answers

How to download google drive selected file in android programmatically?

Google drive selection code is below : private void initializeGoogleDrive() { mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Drive.API) .addScope(Drive.SCOPE_FILE) .addConnectionCallbacks(this) …
2
votes
0 answers

New Google Realtime Document timing issue

I am creating a new in-memory realtime document from a large JSON: var newDoc = gapi.drive.realtime.loadFromJson(jsonData); Then saving that new document to a newly created drive file: newDoc.saveAs(file.id); I also monitor "isSaving" on the…
HeyHeyJC
  • 2,627
  • 1
  • 18
  • 27
2
votes
1 answer

Google drive upload with untitled name

May be this is a duplicate question but I didn't get any successful answer for me. I am trying to upload some file to google drive. It getting successfully upload but the file name is remain "Untitled". Here is bellow what I have tried in curl and…
Swagat
  • 617
  • 5
  • 16
2
votes
1 answer

how to use google drive with api server

i am trying to get files to google drive i figure out to use example in to get list of file with with "ID clients OAuth 2.0" once i take the "tokenID" it only work once and i guess that's how it's suppose to work, i want use the API drive to get…
2
votes
0 answers

Google Realtime API update model from JSON

I'm having trouble utilising the /realtime/update rest resource. I can successfully make the request as specified in the docs and i get a 204 status response with no body. Which is expected. However the realtime model in my application does not…
samsamm777
  • 1,648
  • 2
  • 14
  • 14
2
votes
0 answers

Minimizing / Uglifying with Google Realtime API

If my code registers a custom realtime type: gapi.drive.realtime.custom.registerType(MyType, CONST.MY_CUSTOM_TYPE); // Set the collaborative fields: MyType.prototype.type = gapi.drive.realtime.custom.collaborativeField('type'); ... // Set the…
2
votes
1 answer

Reading markdown from a file hosted in Google Docs

I'm trying to build a prototype/ proof of concept that builds a website from markdown files hosted on Google Drive. I've had a look at the Google Drive API, but cant seem to find a way to read a file in a format that is digestible by a markdown…
2
votes
0 answers

How to export HTML table with inputs to google spreadsheet?

I'm having problem with my project for past two weeks and I'm just stuck. I have read numerous topics and forums regarding this and sill nothing. What I want to do stands in title. I would like to make html page with table in which there would be…
flakes
  • 21
  • 1
  • 4