google-drive-realtime-api

Auto height for Iframe containing embedded / published Google Doc

旧街凉风 提交于 2019-12-03 11:34:25
问题 I have an iframe with a published Google Doc. The contents of that doc are subject to change, so I want to auto adjust the height of the iframe based on its content. I found some solutions for this, but they all require access to the head of the child document. Does anyone have an idea on how to do this? You can view an excerpt of the code I use below: #faq{ height: 800px; overflow: hidden; position: relative; width: 660px; border-top: 1px solid #90C547; border-bottom: 1px solid #90C547; }

Auto height for Iframe containing embedded / published Google Doc

独自空忆成欢 提交于 2019-12-03 02:01:13
I have an iframe with a published Google Doc. The contents of that doc are subject to change, so I want to auto adjust the height of the iframe based on its content. I found some solutions for this, but they all require access to the head of the child document. Does anyone have an idea on how to do this? You can view an excerpt of the code I use below: #faq{ height: 800px; overflow: hidden; position: relative; width: 660px; border-top: 1px solid #90C547; border-bottom: 1px solid #90C547; } <div id="faq"><iframe id="faqif" src="https://docs.google.com/document/..../pub?embedded=true"

How to create realtime sheets using drive realtime api

时间秒杀一切 提交于 2019-12-02 16:48:12
问题 I have gotten the Drive realtime API to work for docs, but I haven't found any references for sheets. I have also been able to embed a sheet into the webpage, but it is uneditable. How do I embed a collaborative realtime sheet? 回答1: The realtime API is for creating collaborative items using your own custom document type, not for editing the Google Documents/Spreadsheets/Presentations types. If you want to edit those, you want to use app script. 来源: https://stackoverflow.com/questions/22587009

Not able to fetch Google OAuth 2.0 access token

我怕爱的太早我们不能终老 提交于 2019-12-02 14:27:41
问题 I have tried to get an access token using the REST API by passing the parameters which are shown in screenshots below, but I face the error Required parameter is missing: grant_type . I have tried with cURL and the Advanced Rest API in a Chrome browser. I am sending these parameters using cURL and the Advanced REST API: client_secret;xxx refresh_token; redirect_uri;https%3A%2F%2Fwww%2Eexample%2Ecom%2Foauth2callback scope;https://www.googleapis.com/auth/drive client_id;xxxxxxxx.apps

Not able to fetch Google OAuth 2.0 access token

橙三吉。 提交于 2019-12-02 06:31:20
I have tried to get an access token using the REST API by passing the parameters which are shown in screenshots below, but I face the error Required parameter is missing: grant_type . I have tried with cURL and the Advanced Rest API in a Chrome browser. I am sending these parameters using cURL and the Advanced REST API: client_secret;xxx refresh_token; redirect_uri;https%3A%2F%2Fwww%2Eexample%2Ecom%2Foauth2callback scope;https://www.googleapis.com/auth/drive client_id;xxxxxxxx.apps.googleusercontent.com access_token; cURL syntax: D:\>curl -k --header Content-Type=application/x-www-form

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

流过昼夜 提交于 2019-12-02 02:16:35
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 passed the fileId to the ' get ' request. What I am getting back, in the response body, is a base64

Google Drive API - Error 500 - Simple API Access

不问归期 提交于 2019-12-02 00:15:58
For months I've been using the Google Drive API for simple access to fetch metadata about publicly shared document IDs. All of a sudden about a week ago (April 16) it stopped working. I've tried repeatedly from different machines (PCs and Linux servers) with browsers and cURL and WGET, and I have even created new Google API accounts to try using different API keys, but it fails 100% of the time. Example request URL: https://www.googleapis.com/drive/v2/files/0By7D4SJX3kYEaGpneE1VaUN6OG8?key=MYAPIKEY Response body: { "error": { "code": 500, "message": null } } Response headers: HTTP/1.1 500

Advanced Drive Service returning Empty Response Error when inserting file

♀尐吖头ヾ 提交于 2019-12-01 19:38:34
问题 This is a continuation from How to Use Advanced Drive Service to Upload Files. My Webapp consists of an upload form for data files, which are then stored on Google Drive. (Full code in snippet below.) I'm having a problem with the following line of code: var file = Drive.Files.insert(resource, mediaData); // create file using Drive API try { //Get root folder and pull all existing folders, plus setup variables pulled from form var dropbox = form.Country; var timeStamp = new Date(); //Set file

Google Drive Realtime API OAuth2 Refresh Errors

[亡魂溺海] 提交于 2019-12-01 18:22:49
Over the last couple days I've been seeing some increasingly problematic issues with a long running realtime app. I've walked through the steps below and the code snippet at the bottom contains additional debug info from the app. When the page first opens it successfully requests an OAuth token and loads the realtime doc [A]. After 50 minutes (10 minutes before the token expires) it re-requests a new OAuth token successfully [B]. After the first token has expired the currently open connection gets a 401 unauthorized error and requires a new oauth token [C]. This in itself seems like a problem

Google Drive Realtime API OAuth2 Refresh Errors

妖精的绣舞 提交于 2019-12-01 17:44:27
问题 Over the last couple days I've been seeing some increasingly problematic issues with a long running realtime app. I've walked through the steps below and the code snippet at the bottom contains additional debug info from the app. When the page first opens it successfully requests an OAuth token and loads the realtime doc [A]. After 50 minutes (10 minutes before the token expires) it re-requests a new OAuth token successfully [B]. After the first token has expired the currently open connection