回答編集履歴
1
あ
test
CHANGED
@@ -1 +1,29 @@
|
|
1
|
+
```javascript
|
2
|
+
|
3
|
+
function onSubmit(e) {
|
4
|
+
|
5
|
+
const url = "";
|
6
|
+
|
7
|
+
const payload = e.response.getItemResponses().reduce(function (res, itemRes) {
|
8
|
+
|
9
|
+
res[itemRes.getItem().getTitle()] = itemRes.getResponse();
|
10
|
+
|
11
|
+
return res;
|
12
|
+
|
13
|
+
}, {});
|
14
|
+
|
15
|
+
const options =
|
16
|
+
|
17
|
+
{
|
18
|
+
|
1
|
-
|
19
|
+
"method": "post",
|
20
|
+
|
21
|
+
"payload": payload
|
22
|
+
|
23
|
+
};
|
24
|
+
|
25
|
+
UrlFetchApp.fetch(url, options);
|
26
|
+
|
27
|
+
}
|
28
|
+
|
29
|
+
```
|