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

Privacy in Google Cloud Platform vs Cloudkit

In Apple's iCloud, there's a Private bucket where the user can store data, using an iOS app created by a third party, that no one else, including the iOS app creator, can see. Is there a similar mechanism in Google Cloud Platform?
1
vote
1 answer

Keep getting The API returned an error: Error: Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup

I followed the https://developers.google.com/drive/api/v3/quickstart/nodejs tutorial and I got it to list the files in onto the console but when I try to return res.data.files it gives me undefined value and errors out with: The API returned an…
1
vote
0 answers

Google Drive API Java IntelliJ Setup

I am trying to write a simple program that renames video files and uploads them directly to Google Drive using Google Drive API. I have already in the Main class written code to rename my files. My next step is I'd like to upload them to the…
1
vote
1 answer

How to get information from Google Drive using Kotlin?

How to read data from Google Drive, such as file name, etc.? I want to get the file name, the link and the picture of the first page of a book (if it's possible) in Google Drive using Kotlin.
1
vote
1 answer

google drive API return insufficient resources

I am now working on a software that can track changes in google drive and get the name of the last modifier of each change. I am doing this by accessing revisions of each file and extract "lastModifyingUser" from revisions resource using google…
1
vote
1 answer

Is get start Page Token for creating drive push notification channel and getting list of changes is same?

I am using googleapis (drive v3) npm and oauth2client to get drive items. I use drive.changes.getStartPageToken() to create channel for webhooks(push notifications). I am successful in getting the notification. Now when I get the notification,…
Kousika Ganesan
  • 539
  • 1
  • 6
  • 22
1
vote
0 answers

How to retrieve data from google drive hidden app folder?

I am creating a app in which I store the user information in the user drive hidden app folder. However when I try to retrieve that information it's gives an Exception. Below is my sample code and If you have any other solution so, please provide me.…
1
vote
0 answers

Through Google Drive API, is there a way to directly update text on a document, or must I download, edit file, then upload?

v3 I'd simply like to update a single Doc on the user's drive. But in order to do this, it seems I need to download the file first, then edit the doc, and finally upload it. I'm thinking I also need to delete the old file, in order to upload the…
Jay Jung
  • 1,805
  • 3
  • 23
  • 46
1
vote
1 answer

Google drive API Get file id having the name

Is it possible to get the id of a file in google drive having the name, extension and path of this file? I've been looking for this but I'm not finding I think it's listing all the files using some sort of filter by name, right? But how do I get the…
user3602803
  • 99
  • 5
  • 12
1
vote
1 answer

error in raspberry-pi oauth2client libraries

I want to upload a text file present in a folder of raspberry pi. For this I have used the following code: from pydrive.drive import GoogleDrive drive = GoogleDrive(gauth) file1 = drive.CreateFile({'title': 'Hello.txt'}) # Create GoogleDriveFile…
1
vote
0 answers

Google Drive event stream

is there any Socket of Google drive that i can get from it a Stream of the events that the user execute such as: File moved Folder moved File created and so on.
1
vote
1 answer

Is there a workaround to use gapi.auth2 for authentication when using gapi.drive.realtime?

There is a bug in gapi.drive.realtime which causes it to not work with auth2 (See this Github issue.) Here is a brief explanation of the bug; when using the old gapi.auth.authorize method, the functions provided by gapi.drive.realtime work…
1
vote
1 answer

How to set parent Id in version 3 of google drive API?

I am currently using version2 of API. Now, I want to switch to version3. I want to set the parentId in this version. What changes should I make in below line of code to do so?
1
vote
2 answers

Authorizing for Google Drive and Google Sheets API together

So I'm trying to use Google Drive to get a list of file ID's and then use those file ID's to update the spreadsheets through the Google Sheets API. I'm struggling to comprehend how exactly I should combine those authentications in Node.js in order…
1
vote
0 answers

Upload file to Google Drive API

Need help with the google drive API. Any help would be appreciated. An image is drawn on a canvas and saved to a folder which works but then i want to get that file from its save path and upload it to google drive. Below is my code. I don't get any…
slukec
  • 11
  • 2