google-drive-realtime-api

How to work with Realtime 'get' and 'update' api requests?

与世无争的帅哥 提交于 2019-12-20 03:19:46
问题 I am trying to understand how the Realtime API Resource Model is "shaped", in order to work with ' get ' and ' update ' features. Unfortunately documentation doesn't not say nothing about it (https://developers.google.com/drive/v2/reference/realtime#resource). I went to try by myself using the ' get ' request provided in the docs (https://developers.google.com/drive/v2/reference/realtime/get#try-it), so I created a new one realtime doc (using the Google Drive Realtime API Playground) and I

Opening specific MimeTypes with google picker

别来无恙 提交于 2019-12-19 09:23:45
问题 I am working with realtime API and I am making use of realtime-client-utils. Using existing code, I am creating realtime files with this method: createRealtimeFile = function(title, callback) { gapi.client.load('drive', 'v2', function() { gapi.client.drive.files.insert({ 'resource': { mimeType: rtclient.REALTIME_MIMETYPE, title: title } }).execute(callback); }); } and then I am trying to open files with this picker: var popupOpen = function () { var token = gapi.auth.getToken().access_token;

Embed interactive Google Sheet in website without letting users save changes [PHP ,HTML]

冷暖自知 提交于 2019-12-13 09:12:55
问题 I want to embed a Google Sheets spreadsheet to my website. I would like it so that users can come to my website and they can see and interact with the spreadsheet. The spreadsheet also contains some formulae . For example there is a width, height , fabric , price column in this sheet . Fabric is a drop down and it contains some types of fabric with different prices. The formula for calculating the price is: height*width*fabric value So whenever user adds width, height, and selects the fabric

How we can create the folder in google drive by using java

痞子三分冷 提交于 2019-12-13 08:48:22
问题 I need to create the folder in Google drive by using Java. Does any one tell me the example or how to create the folder in Google drive. Thanks in advance...!!! My program package net.sf.dynamicreports.examples; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.DefaultHttpClient; import com.google.gson.JsonObject; public class SourceCodeProgram { public static void main(String argv[]) throws Exception {

Find if a Google Document is blank using google script

北战南征 提交于 2019-12-13 08:40:01
问题 How to find if a google document is blank using App script? I tried this function myFunction() { var body = DocumentApp.getActiveDocument().getBody(); var para = body.getParagraphs(); var count = 0; for (i = 0; i < para.length; i++) { if (para[i].getText() != "") count++; } if(count=0) Logger.log("Empty"); else Logger.log("NOT EMPTY") } I am sure that this works good only if the document has text content alone. I am eager to know if there is any way to find if the document is blank. 回答1: A

Google Drive API - Creates duplicate folders

◇◆丶佛笑我妖孽 提交于 2019-12-13 07:36:55
问题 I am developing a Java program that will upload documents to Google Drive. I found that if I try to upload to an existing folder, that I have to make sure that it is case sensitive to the existing folder. If my existing folder is on the Root labelled HDDocs, then I must input the path as "/HDDocs/10/05/01". Doing this works fine and the files are uploaded to the correct path on Google Drive - as long as I use mu personal gmail account. As soon as I try to do this on my Google Apps account, a

Realtime drive javascript example not working - Google API

北城以北 提交于 2019-12-13 07:35:39
问题 I set up the Realtime drive example shown here: https://developers.google.com/drive/realtime/realtime-quickstart On this site: http://shuub.com But the thing is, that when I access the link from a different browser (logged in a different Google account), it won't load the file. All I need is to edit some plain text with another user, without needing to access a google account, it doesn't even need to be saved after closing the site . Is it possible? Thanks for reading. 回答1: But the thing is,

Google Drive List API - not listed all the documents?

拟墨画扇 提交于 2019-12-12 06:28:16
问题 I am trying to list all the documents using Google Drive List API. But it doesn't list all the documents some documents details are not presented in the response. This issue occurred in some of our customer's Drive account. When tried in OAuth2 playground, it results in the same response with missing documents list for these users. Note : scope I used https://www.googleapis.com/auth/drive File mimetype is "application/vnd.google-apps.spreadsheet" Can anyone please help me to find out the

Preview and open-with

不打扰是莪最后的温柔 提交于 2019-12-12 03:22:16
问题 I see that the file created with Realtime playground at my Google drive supports Open With functionality. Despite preview is not available, I can click it and playground app reopens. How do I do the same with my app. I have created a demo one, to add/remove list items and it creates the files in my google drive, similarly to the google realtime playground functionality. The open with is also available. Google app files with my app it created. But, clicking it, results in Sorry, we were unable

gspread.exception Spreadsheet not Found on a particular sheet

有些话、适合烂在心里 提交于 2019-12-11 16:57:51
问题 I am working to get google sheets downloaded on my EC2 linux server.I shared the google sheet with email id from credentials json file. I am using gspread, to open the sheet using open_by_key(file['id']) and the code works when I run using root but not using a different user having the same properties. It gives this error : File "/home/edh/.local/lib/python2.7/site-packages/gspread/client.py", line 113, in open_by_key raise SpreadsheetNotFound gspread.exceptions.SpreadsheetNotFound This code