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

create a new google.picker.PickerBuilder with specific files stored in my appdata

I can create a new google.picker.PickerBuilder with specific files stored in my appdata folder, from google drive ? I reached get all the files from my appdata folder in PHP, but I want to display them in a view like in this example: function…
1
vote
1 answer

Google Drive API & Google Realtime API - Can I place a realtime file in the app folder?

Using the Google Drive API and Google Realtime API (via JavaScript): I can create a realtime file without providing a parent. However when I attempt to set the parent as "appdata" I receive this error from the API: Only folders or files with…
1
vote
1 answer

Use Google Drive as the UI for Google Cloud storage

Is it possible to separate the Drive data store from the UI and use Google Cloud Storage instead for enterprise performance and permissions management reasons?
1
vote
1 answer

Looking to use google drive realtime API with google+ hangout application

I currently have a hangout application and I'd like to add some collaborative functionality to it given the realtime API. Following the realtime API quickstart guide (adding two text areas and a button to authorize with), I've added the relevant…
1
vote
1 answer

Dealing with https://drive.google.com/otservice/bind? ...TYPE=terminate when sending a large chunk of data

I am using Google Drive's Realtime API in a javascript app to collaborate on a series of mouse points. On a timer I am setting the complete list of mouse points as a value in a CollaborativeMap. As the mouse moves the list of points grows and the…
1
vote
1 answer

List all Top Level Folders in Google Drive api

IAM Working on app which use Google Drive API. Could I get top level folders in the Google drive using drive API? What is the Scope For that?
1
vote
1 answer

Is there a method to get the google doc editing time?

I have a problem detecting exactly how much time an user spent editing a document from Google Drive (not the difference between the document creation time and last modified entry of the change). I'm referring at what Microsoft Word is calculating…
gabryal
  • 15
  • 1
  • 4
1
vote
2 answers

Google Drive API Error PHP

I'm trying to install the google api for PHP, following this tutorial https://developers.google.com/drive/quickstart-php#step_1_enable_the_drive_api I downloaded the source files from this website: http://code.google.com/p/google-api-php-client/…
user1950701
  • 49
  • 2
  • 6
1
vote
0 answers

Google Drive API Error

I have a problem when i share my folder to other user from mobile app using Google Drive API then it gave me error like this : { ": [ { "domain": "global", "reason": "required", "message": "Resource…
1
vote
1 answer

Using Google Drive contents using Google Drive API without sending access tokens for each request

I am writing an application that can modify an spreadsheet in Google Drive, but the problem is that each time I try to access Drive contents it asks for access token as per the OAuth2 specification which I have to generate manually after browsing…
1
vote
1 answer

Google_ServiceException: Error calling POST

I need help. Trying to send file to the google drive from localhost. 1. I downloaded sample project and substitute my credentials 2. Then I got: Fatal error: Uncaught exception 'Google_ServiceException' with message 'Error calling POST…
Alex Rsk
  • 93
  • 1
  • 7
1
vote
1 answer

How to upload and download audio files from Google Drive in Windows Phone 7

Is there any Google Drive API available for upload and download audio files in windows phone 7. If not then, is there any way to achieve this.
0
votes
0 answers

Google Drive Audio Repo URL for JS

I want to make a radio station {music player} with a public google drive audio repo but URLs of audios changing constantly and URL convertors not working because it's last for few minute. has anyone such a issue or how possibly can solve the thing.…
0
votes
0 answers

How to download a file from google drive without showing this action in the change history

If I have access to a folder with some files in google drive, it's possible to download this folder without showing any changes in history? The owner of the folder should not see that the file was downloaded. If it's possible in python please tell…
0
votes
0 answers

Could not get Authorize via OAuth authentication in Google Drive API

When I create a folder in Google Drive using Google Drive APIs.I am using Oauth, But while using Oauth it gives me error of access block. Please find the below error https://i.stack.imgur.com/lWDc7.png