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

How do I delete multiple files at once in Drive API for Javascript?

function deleteFiles(fileId,supportsTeamDrives) { var date = new Date(); date.setDate(date.getDate() - 180); var n = date.toISOString().split('.')[0] ; var test = false; gapi.client.drive.files.list({ pageSize: x, q: "starred =…
1
vote
2 answers

Display SQLite data to application from Google Drive

I know about Displaying Text or other raw data display, But My Query is about SQLite table. Query: Display SQLite data to application from Google Drive. I have Uploaded a SQLite Database to GoogleDrive which has 5 tables including one "Mobile…
1
vote
1 answer

Google Apps Script/ Drive API (Javascript) Remove from Shared With Me

Does anyone have any suggestions for how to remove a file from shared with me? I need to do this without actually revoking access, as the people are added via a contact group, so only removing 1 person will not work. Things to note: I know using…
1
vote
1 answer

Copying the files from google drive to our server via Google Drive PHP library API V3

I'm trying to integrate Google Drive within our website. What we would like to do is to copy a file from Drive to our server, you know, kind of : Send to My Files. When i try to integrate i am facing the following error My tried…
Dinesh
  • 197
  • 1
  • 12
1
vote
1 answer

Can I use server side generated token to upload files to google drive in client side(angularjs)

I am new to google drive API. I want to use google drive to save my web site files. file should be save to one google drive(my google drive). Any one can login to my web site and upload files. To use google drive there is a authentication process…
1
vote
1 answer

Does Liferay Search Portlet searches in external repository like Google drive?

How to add repository contents to be searchable via search portlet. I have integrated Google drive with Liferay. All documents which are in google drive can be viewed and edited. Can anyone please tell any step by step guidelines of how to integrate…
1
vote
0 answers

Google Drive API Multipart upload 502 error

I have PHP code which inserts files into Google Drive. Most of the time it works fine. However I've noticed lately that it will randomly return a 502 error as follows: Error 502 (Server Error)!!1 ...

502. That’s an…

Kelly
  • 76
  • 1
  • 8
1
vote
0 answers

How do I download a Google Sheet (Not workbook) in pipe delimited format from Google Drive using Python

I'm coding to download a file from google drive to local system using google drive api. Below is my code. I've following questions: 1) Is there a way to specify sheet number to download only that from a workbook or complete workbook will be…
1
vote
1 answer

GoogleDrive as a template engine for PDF generation? Possible?

I have a question on how the following approach could be implemented / is feasible for using GoogleDrive, GoogleDocs, GoogleSheets via API as a PDF generator and document storage from templates where the templates itself are stored on the users…
1
vote
1 answer

With modernizing-oauth-interactions, can googleplus sign in auth token be used in google realtime apis?

Background for this question is this --> Modernizing OAuth interactions in Native Apps for Better Usability and Security In any mobile app using inappbrowser, Oauth requests will be restricted But can we use Google plus sign in and use its Auth…
1
vote
1 answer

Deleting rows in a google sheet using API and BatchUpdateRequest

I'm attempting to send a BatchUpdateRequest to the Google Sheets API so that I can delete a row of data from a spreadsheet. My request looks like this: var spreadsheetId = '1EV8S8AaAmxF3vP0F6RWxKIUlvF6uFEmsrOFWA1oNBYI'; var requests = []; …
Ryan
  • 262
  • 3
  • 19
1
vote
1 answer

Copy protected sheet permissions when copying a file within Google Drive

I'm tried to ensure protected sheets in Google Sheets have their permissions copied across to their copies when copying a folder, which contains Google Sheets. When I copy a set of folders within Google Drive using any of the Copy Folder utilities…
1
vote
0 answers

Stream Google Drive Music via V3 API

I am able to stream music file of google drive using downloadUrl method of V2 API, but is there is any alternate method in V3 API to fetch downloadUrl? GTLQueryDrive *query = [GTLQueryDrive queryForFilesList]; query.q =…
1
vote
1 answer

Google Drive SDK: be notified about any file change

I developed a Python app to access GDrive, now I want to be notified in case any file is changed on gdrive. Specifically I'm interested in move / rename, remove, download and upload events. I see Google provide 2 tools: push notifications, but it…
Giampaolo Rodolà
  • 12,488
  • 6
  • 68
  • 60
1
vote
0 answers

Realtime API Fatal Network Error on Load

I've been seeing instances of 'fatal_network_error' popping up in production more frequently recently. This particular error unfortunately isn't documented anywhere as to what the issue may be, so apart from retrying the doc in the client open I'm…
Grant Watters
  • 660
  • 4
  • 16