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

What is format of Google Drive's FileID ? I need to find out whether new File has been uploaded to my drive or not using API's

If FileID follows a particular format like new file has higher values or lower values I can keep track of the old values and find out whether I hace uploaded a new File in drive.
5
votes
0 answers

How to upload files to shared folder in google drive as shared folder owner's quota?

I have to move a set of backup files of a web application day by day to google drive. For this my friend created a folder in the google drive and shared with me with edit permission so he can also the see the backup files. So I created a…
Sivaji P R
  • 111
  • 1
  • 8
5
votes
1 answer

Bash script to backup data to google drive

I want to create a bash script that will log into my google drive account and backup my main folder. I've done a bit of research and I know we need some sort of OAuth for using the Google Drive API but I'm still fairly new so I thought I can get…
halapgos1
  • 1,130
  • 4
  • 16
  • 34
5
votes
4 answers

Showing documents from Google Drive on webpage

Is it possible to show the documents from my drive on a webpage? I want the user to be able to click the document and download it, directly from my drive. How would I go about doing this? Thank you for your suggestions.
5
votes
2 answers

Google API OAuth for Drive API is not working. Getting Error: origin_mismatch

I am trying to run the quick start code of Real Time API of Google Drive. I believe I did everything right. But I am getting Error: origin_mismatch Request Details openid_connect_request=true cookie_policy_enforce=false …
Rahul
  • 739
  • 4
  • 15
  • 31
4
votes
3 answers

Unable to upload huge file on google drive using python

I am trying to upload files to Google drive by Google API using the following code import httplib2 from apiclient import discovery from httplib2 import Http from oauth2client import file, client, tools try: import argparse flags =…
4
votes
2 answers

Is there any Google Drive powered alternative to real time API?

I've just learned that Google Realtime API is now deprecated. It is suggested to migrate to Firestore instead. However, Firestore's model is not built around Google Drive so it will not be possible to manage and share real-time documents via Google…
Jaroslav Benc
  • 560
  • 3
  • 13
4
votes
2 answers

Google Drive API Error Daily Limit for Unauthenticated Use Exceeded

Im getting error on using Google API. having right to connect with Google Drive and add new sheet and insert data into it. It was working till yesterday but when i run the application today. Im getting error : Error appears after users given token…
4
votes
1 answer

Google Drive Auto Unzip In Situ (i.e. in Google Drive) a Google Takeout archive after upload

Id like to know if the following is possible as I can't seem to find any concrete way to do it online: When Google Takeaway service uploads a new takeout-xxx.zip file to my Google Drive Takeaway folder, can a Google Drive script run to automatically…
twiz911
  • 634
  • 1
  • 9
  • 18
4
votes
2 answers

Advanced Drive Service returning Empty Response Error when inserting file

This is a continuation from How to Use Advanced Drive Service to Upload Files. My Webapp consists of an upload form for data files, which are then stored on Google Drive. (Full code in snippet below.) I'm having a problem with the following line of…
4
votes
1 answer

Google Drive Realtime API offline and sync support

I want to build a mobile web app with transparent offline and sync support for collaborative persistent data. I am considering using Google Drive Realtime API for the backend. How well is offline and sync supported by the API? Does it just work…
4
votes
3 answers

How to convert an already-uploaded Excel file to Google's spreadsheet format?

I need to convert Excel files already uploaded to Google Drive into Google's spreadsheet format. What is the best way to do that programmatically? I've found this post (#15), but I can't figure out how to use this code. And it seems intended for…
4
votes
1 answer

create google spreadsheet in specific folder in drive | Google drive api

I am trying to create a google spreadsheet in specific folder in google drive with the google drive api. So, far I have written a code to just create a spreadsheet but unfortunately it is not working. import gdata.docs.client import…
4
votes
2 answers

Google Drive API - too slow.

I've just working on Google Drive API. I have one problem, it's too slow. I use methods like in the Documentation. For example: List getFilesByParrentId(String Id, Drive service) throws IOException { Children.List request =…
4
votes
1 answer

Is Google Drive RealTime API for Android?

Does Google Drive RealTime API still not support Android? I did it using JavaScript but want to use it in Android. I don't think it does exist cause no official blogs say that and it doesn't even appear on the Developers site. Is there any…
1 2
3
34 35