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

set cell or row background color in a google spreadsheet using google_drive gem on ruby

I'm trying to set a background color for a cell and a row and am using the 'google_drive' gem. It looks like that the 'spreadsheet' gem does have this option format = Spreadsheet::Format.new :color=> :blue, :pattern_fg_color => :yellow, :pattern =>…
4
votes
1 answer

Google Drive API Java Permissions 500 Internal Error

I have the next method to share Google Drive files: public static boolean shareFile(HttpServletRequest httpReq, String fileId, String user, String rol, boolean commenter) { Drive service = getService(httpReq) ; if (service != null){…
4
votes
2 answers

Create a folder in google drive php

Is there any way we could create a folder on google drive using PHP? I've been searching all the web for the last 72 hours with no results. What do you think guys? Thanks !
3
votes
1 answer

Update polyline route with user's live location flutter

When i update the polyline code, on location change method, It gives me additional straight line. I want to update my polyline when user move from one source to destination. I am able to create a polyline route but i want that route become shorter…
3
votes
1 answer

gspread: 503 the service is currently unavailable

I have written a python code that downloads data from a google sheet and converts into a csv. I give a google drive id and it scans all the sheets in it, downloading them into local machine. I have ran this program many times, but today I got this…
3
votes
1 answer

Google Drive Api deprecated ( Google play games -> Saved Games )

I received an email saying that on December 9th all methods using Google Drive API will be deprecated. Reading the documentation of the Saved Games (https://developers.google.com/games/services/android/savedgames), they use Google Drive API. Will…
3
votes
1 answer

Google Drive API read access not granted

I am trying to download a random file from a Google Drive using Google Drive API. Although after running the code I got an error message: The user has not granted the app (app_code) read access to the file (filename). How can I grant a read access…
3
votes
0 answers

Google Drive API - Javascript - 403 The user does not have sufficient permissions for this file

I am using Google Drive API and my web app was working for over a year ago until a few days ago, I keep getting this error in my console: It gave me a url in my log, after opening it, it shows this: { "error": { "errors": [ { "domain":…
3
votes
1 answer

Google's File Insert v2 API fails to recognise MIME TYPE application/vnd.google-apps.document

This morning, I tried using Google APIs File Insert where I provided MIME TYPE as application/vnd.google-apps.document. I am getting the following response from Google API HttpError:
3
votes
1 answer

Faraday::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read se rver hello A on rails and google drive gem

I am having an issue on windows and rails using the "google-drive-ruby" gem, When I try to do the "On behalf of you" authorization, after initializing config.json and running session = GoogleDrive::Session.from_config("config.json") in console, a…
jportella
  • 93
  • 2
  • 9
3
votes
2 answers

How to have multiple scopes with Google Calendar + Google Drive

I am new to the Google APIs and want to know how I would be able to access 2 different APIs within the same files. I have SCOPES = 'https://www.googleapis.com/auth/calendar' but I also want SCOPES =…
3
votes
0 answers

Need google-drive-realtime-api tuotorial with angular2

I am new to angular2. I want to use google-drive-realtime-api in my project. And got it from the npm : npm install --save @types/google-drive-realtime-api Is there a good tutorial or quick start with realtime api in anuglar2? PS: Angular 2 with…
Kaisar
  • 51
  • 5
3
votes
0 answers

Change file permission setting Google Drive Android API

I am creating an audio recorder which after completion of recording, automatically uploads recording to user's Google Drive and share its link with predefined set of contacts. I have been able to upload the file using Google Drive Android API. Now,…
3
votes
2 answers

Look up File ID in Google Drive given a file path (Ex: "MyDrive/Folder1/Folder2")

I am currently working to a small program that can take a file/folder path in Google Drive (Ex: 'MyDrive/Folder1/Folder2/Folder3'), and do some operations on it (list, upload, download, copy, etc.) The folder path is a string input by user (one…
Ha Vu
  • 89
  • 1
  • 8
3
votes
5 answers

Is there a way to get links to a google drive video file with redirector.googlevideo.com?

I used to get links for video streams from google drive file like…
user3411211
  • 111
  • 1
  • 1
  • 6