google-apps

Upload a file to a Google Web Apps with doPost

别说谁变了你拦得住时间么 提交于 2020-01-02 11:03:11
问题 I'm trying to upload a file to a Google Web App with doPost(e), as shown below. function doPost(e) { var blob = e.parameter.myFile; DriveApp.createFile(blob); } A file is then POSTed to the web app at the client side. The POST has been proved to work correctly with on my own web server. However the blob variable, in the code above, is not actually a Blob type, it is a string type. How does Google script engine prepare parameter e? Is there a way to make this work? 回答1: I got the same problem

Passing authentication from one Google Apps Script webapp to another Google Apps Script webapp

Deadly 提交于 2020-01-02 06:24:11
问题 I have two Google Apps Scripts in my Google Apps account. Both have been published as webapps with the following settings. Script A: Execute as me Who has access to the web app:Anyone within XXXXXXX.com Script B: Execute as the user accessing the app Who has access to the web app:Anyone within XXXXXXX.com I want to have Script B use UrlFetchApp to execute Script A. How do I authenticate Script B to Script A? Note: Script A is being used to get\write data from\to a spreadsheet that only I have

OpenID authentication to Google Apps via Perl and Net::OpenID::Consumer fails

风格不统一 提交于 2020-01-01 06:26:18
问题 I asked this over on Google's support forums for Apps integration, but got zero response. Maybe somebody here can help steer me in the right direction. I'm trying to integrate a Perl application with Google Apps, and I'm having some trouble with the OpenID authentication. I've been using this PHP tutorial from Google as a kind of reference, since there are no Perl examples I can find. My initial file, index.cgi (referred by manifest.xml, and the starting point of the OpenID transaction) is as

Anyway to Authenticate a user using Google Apps in an Android application?

空扰寡人 提交于 2020-01-01 05:41:17
问题 I was wondering if anyone knows of a way I can Authenticate a Google Apps User in a Android Application? One approach I know of is to take could take their username and password in a android view, and use the clientLogin interface (http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html). However I was wondering if there was a different approach, maybe pushing to a browser window where it would show the google login for that domain, but I would not know how to get the details back

“Integrate with Google” button suddenly disappeared (receiving 404)

喜夏-厌秋 提交于 2019-12-31 17:10:24
问题 I have Google-Apps-Marketplace app in which I'm using "Integrate with Google" button to start the google OAuth2 process. For some unknown reason the button disappear today, and I'm receiving the error 404 - https://apis.google.com/marketplace/button Does anybody know if it's a temporary issue in google API, or something had changed and I need to update my app? I saw similar questions regarding the disappearance of the button from 4 years ago, however they refer there to access problems (error

Understanding “CancellationException: Task was cancelled” error while doing a Google Datastore query

僤鯓⒐⒋嵵緔 提交于 2019-12-31 04:43:33
问题 I'm using Google App Engine v. 1.9.48. During some of my data store queries, I am randomly getting "CancellationException: Task was cancelled" error. And I'm not really sure what exactly is causing this error. From other Stackoverflow posts, I vaguely understand that this has to do with timeouts, but not entirely sure what is causing this. I'm not using any TaskQueues - if that helps. Below is the stack trace: java.util.concurrent.CancellationException: Task was cancelled. at com.google

Google Apps Marketplace v2 - How to test the project created in GAMv2 with another test domain using Test Install?

假装没事ソ 提交于 2019-12-31 01:47:17
问题 I have done the following steps in Google Developer Console for creating an App in GAMv2. Created a project in the Google Developer Console Created a web application in the project Created a Service Account in the project Added Google Marketplace SDK and tried with Test Install Flow. If I need to test the install flow with the another domain before listing in the Google Marketplace, how do I test with a domain other than the Domain with which the Project is created? If I need to create in the

If var isnumber, for script

你。 提交于 2019-12-30 05:57:25
问题 I need to run a script which contains the logic: If isNumber, Then DoSomething. I've run other such if then tests such as if blank, and if cell contains "x". It should be simple but I can't find a solution. I've tried getNumberFormat, innum, isnumber, etc. function ifIsNumber() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var s = ss.getActiveSheet(); var substring1 = s.getRange("A1").getNumberFormat(); s.getRange("B1").setValue(substring1); } This code checks cell A1 and returns in cell

Google Apps Script Create form with file upload

◇◆丶佛笑我妖孽 提交于 2019-12-28 19:18:53
问题 I'm in the process of creating a basic form that takes user input via text boxes and drop down list and upon submit will log into a spreadsheet. So far this works fine. What I would like to add to the form is a "file upload" feature, that allows someone to select the file and upon submitting the form the file is uploaded as the data values from text boxes and drop downs are logged into the spreadsheet. I've reviewed the following link https://developers.google.com/apps-script/class_fileupload

Google Apps Script Create form with file upload

被刻印的时光 ゝ 提交于 2019-12-28 19:18:34
问题 I'm in the process of creating a basic form that takes user input via text boxes and drop down list and upon submit will log into a spreadsheet. So far this works fine. What I would like to add to the form is a "file upload" feature, that allows someone to select the file and upon submitting the form the file is uploaded as the data values from text boxes and drop downs are logged into the spreadsheet. I've reviewed the following link https://developers.google.com/apps-script/class_fileupload