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

Client-side and server-side authentication without the user logging in twice?

Is it possible to use client-side and server-side oauth2 authentication without requiring separate user logins for each? The cross client identity page seems to be exactly what I want, but it doesn't describe how to achieve this for web client and…
0
votes
1 answer

can't get access token using refresh token

I wrote desktop application on java, which have access to the Google drive. (it just uploads and downloads files). At the moment access type is online. when I need to access files/folders to the drive, I redirect he browser to a Google URL and get…
grep
  • 5,465
  • 12
  • 60
  • 112
0
votes
1 answer

Trying to do a simple google drive API test using google's dot net library and service account

I put together the example code below, using some helper code that came with Google's examples for its dot net google api client libraries. The problem: It doesn't list any files info even though I uploaded one to the Gooogle account that owns this…
Elliot
  • 2,002
  • 1
  • 20
  • 20
0
votes
1 answer

Is there a way to levearge Google Drive API to allow your application to create Google Docs from within your own system?

We were using an Iframe, then we started to use the API for Google Drive. We want to allow users to create a Google Doc from within our system w/o leaving our application. Does anyone know if this is possible?
0
votes
1 answer

Google Realtime API - What is my Application ID?

Looking at sample here /** Your Application ID from the Google APIs Console. */ rtpg.APP_ID = YOUR_APP_ID; I'm looking at Google API Console, I see Client ID and API key, but I can't find a field with my application id. Is it actually marked as…
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
0
votes
1 answer

Google Realtime API - Using Collaborative Models with Files

Trying to understand this help doc. It says: The Realtime API provides a persistent document for the data that users are collaborating on. What is this "persistent document"? Is this a file in Google Drive? I'm not planning to store data in…
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
0
votes
1 answer

Google Realtime API - creating and removing shortcut file in Google Drive

Looking at Realtime API quickstart example, a shortcut file is used to store realtime document model. I'm assuming that this is a file that holds realtime document model state. Question: do I need to create and clean up this shortcut file for…
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
0
votes
1 answer

adding an image with metadata inside a folder on google-drive

I am trying to upload a image with metadata inside a folder on google-drive but I am not able to do so.I came across this link https://developers.google.com/drive/folder which shows a way to upload image to a folder but example on that page is not…
saurabh
  • 110
  • 3
  • 12
0
votes
1 answer

how to get list of all folders with their name on google-drive

I am making an application in qt/c++ and I wanted to upload images to a specific folder.I tried to get list of all folders but it does not provide me names of folder.I wanted to get their names so that user can select a particular folder from list…
saurabh
  • 110
  • 3
  • 12
0
votes
1 answer

on uploading file to google-drive by using c++/qt filename of newfile is always untitled

I found a similar question: Google Drive API insert new file with Untitled name but code is not attached there. My code: void googled::newuploadSettings(QNetworkReply *reply){ QByteArray data = reply->readAll(); qDebug() << data; QString…
saurabh
  • 110
  • 3
  • 12
0
votes
1 answer

How can authorized a user using refresh token in Google-drive API

i have both refresh token and access token in my Google-drive API. but i don't want to request a new access token each time when user use my API for that i store my refresh token. how can i get new access token from refresh token
0
votes
0 answers

How to share google docs using oauth in php

I need to change my AuthSub code to oAuth since Google is deprecating AuthSub. In my project currently a user can create and share his google docs to other with writer/read only role. While changing authsub to oauth, I am able to create new docs…
Monu D
  • 111
  • 1
  • 4
0
votes
1 answer

Any way to use kqoauth for google-drive

I want to upload images to google-drive.I came across kqoauth which provides example for twitter.Can it be used for google drive and how?
saurabh
  • 110
  • 3
  • 12
0
votes
1 answer

Drive API gives Error 500

Upon using the form provided by Google, it fails and gives this response Request GET https://www.googleapis.com/drive/v2/files/0By0Nrrd3XVTUY2pGOTBXTWFWWjQ?key={YOUR_API_KEY} X-JavaScript-User-Agent: Google APIs Explorer Response 500…
0
votes
1 answer

Google Drive API for Chrome packaged app

I was following quick start example for getting oauth setup for my packaged app. https://developers.google.com/drive/quickstart-js In order to get the client id, they put localhost port in redirect uri field, but since I am not dealing with any…
user1745649
  • 137
  • 1
  • 9
1 2 3
34
35