{"id":6326,"date":"2015-10-16T23:15:01","date_gmt":"2015-10-16T14:15:01","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=6326"},"modified":"2015-11-19T14:30:25","modified_gmt":"2015-11-19T05:30:25","slug":"google-apps-script-execution-api%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=6326","title":{"rendered":"Google Apps Script Execution API\u3092\u8a66\u3057\u3066\u307f\u305f\u3002"},"content":{"rendered":"<p>\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=6305\" title=\"\u300cGAS Station #2\u300d\u306b\u53c2\u52a0\u3057\u3066\u304d\u307e\u3057\u305f\u3002 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">\u300cGAS Station #2\u300d\u306b\u53c2\u52a0\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/a>\u300d\u3067\u66f8\u3044\u305f\u901a\u308a\u3001\u5148\u9031GAS(Google Apps Script)\u306e\u30cf\u30f3\u30ba\u30aa\u30f3\u30a4\u30d9\u30f3\u30c8\u300c<a href=\"http:\/\/gas-station.connpass.com\/event\/19933\/\" title=\"GAS Station #2 - connpass\" target=\"_blank\">GAS Station #2<\/a>\u300d\u306b\u53c2\u52a0\u3057\u3001\u65b0\u3057\u3044API\u300c<a href=\"https:\/\/developers.google.com\/apps-script\/guides\/rest\/\" title=\"Apps Script Execution API  |  Apps Script  |  Google Developers\" target=\"_blank\">Apps Script Execution API<\/a>\u300d\u3092\u89e6\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u3069\u3093\u306a\u611f\u3058\u3067\u4f7f\u3046\u306e\u304b\u3092\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Execution API\u306f<span style=\"color: #ff0000; font-weight: bold;\">\u201c\u81ea\u5206\u304c\u66f8\u3044\u305fGAS\u95a2\u6570\u3092\u5916\u90e8\u304b\u3089\u547c\u3073\u51fa\u3059API\u201d<\/span>\u3067\u3001\u8907\u6570\u306eGoogle\u30b5\u30fc\u30d3\u30b9\u3092\u8de8\u3050\u51e6\u7406\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u3001\u4e00\u3064\u306e\u95a2\u6570\u306b\u307e\u3068\u3081\u3066\u3057\u307e\u3048\u3070\u3001\u5358\u4e00\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304b\u3089\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n(Office 365\u306e<a href=\"http:\/\/dev.office.com\/unifiedAPIs\" title=\"Office Dev Center - Office 365 unified API (PREVIEW)\" target=\"_blank\">unified API<\/a>\u306b\u4f3c\u3066\u3044\u308b\u3068\u3053\u308d\u304c\u3042\u308a\u307e\u3059\u306d\u3002)<\/p>\n<h4 class=\"style4a\">\u53c2\u8003\u60c5\u5831<\/h4>\n<ul>\n<li>GAS\u306eExecution API\u3092\u4f7f\u3063\u3066GAS\u3092\u5916\u90e8\u304b\u3089\u3076\u3063\u53e9\u304f<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/qiita.com\/soundTricker\/items\/1bcfc5c9e80d29a7ae4b\" target=\"_blank\" title=\"GAS\u306eExecution API\u3092\u4f7f\u3063\u3066GAS\u3092\u5916\u90e8\u304b\u3089\u3076\u3063\u53e9\u304f\">http:\/\/qiita.com\/soundTricker\/items\/1bcfc5c9e80d29a7ae4b<\/a><\/li>\n<li>Apps Script Execution API<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/developers.google.com\/apps-script\/guides\/rest\/\" target=\"_blank\" title=\"Apps Script Execution API\">https:\/\/developers.google.com\/apps-script\/guides\/rest\/<\/a><\/li>\n<li>Run Apps Script code from anywhere using the Execution API<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/googleappsdeveloper.blogspot.jp\/2015\/09\/run-apps-script-code-from-anywhere.html\" target=\"_blank\" title=\"Run Apps Script code from anywhere using the Execution API\">http:\/\/googleappsdeveloper.blogspot.jp\/2015\/09\/run-apps-script-code-from-anywhere.html<\/a><\/li>\n<\/ul>\n<h4 class=\"style4a\">\u547c\u3073\u51fa\u3059\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6e96\u5099<\/h4>\n<ol>\n<li>\u30b7\u30fc\u30c8\u540d\u3092\u53d6\u5f97\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u3001\u9069\u5f53\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u7528\u610f\u3057\u307e\u3059\u3002\u30b7\u30fc\u30c8\u306eID\u306f\u4e0b\u56f3\u306e\u901a\u308a\u3001URL\u304b\u3089\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_01.jpg\" alt=\"GoogleAppsScriptExecutionAPI_01\" width=\"949\" height=\"374\" class=\"alignnone size-full wp-image-6327\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_01.jpg 949w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_01-300x118.jpg 300w\" sizes=\"auto, (max-width: 949px) 100vw, 949px\" \/><\/a><\/p>\n<li><a href=\"https:\/\/script.google.com\/\" title=\"Apps Script - Google Apps Script\" target=\"_blank\">https:\/\/script.google.com\/<\/a> \u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u7a7a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/span>\u300d\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_02.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_02.jpg\" alt=\"GoogleAppsScriptExecutionAPI_02\" width=\"622\" height=\"557\" class=\"alignnone size-full wp-image-6328\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_02.jpg 622w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_02-300x269.jpg 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/a><\/p>\n<li>\u4e0b\u8a18\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u305f\u5f8c\u300c<span style=\"color: #ff0000; font-weight: bold;\">myFunction<\/span>\u300d\u3092\u5b9f\u884c\u3057\u3001\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">function getSheetNames(sheetId) {\r\n  var ss = SpreadsheetApp.openById(sheetId);\r\n  var sheets = ss.getSheets();\r\n  return sheets.map(function(sheet) {\r\n    return sheet.getName();\r\n  });\r\n}\r\n\r\nfunction myFunction() {\r\n  Logger.log(getSheetNames(&quot;\u30b7\u30fc\u30c8ID&quot;));\r\n}<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_03.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_03.jpg\" alt=\"GoogleAppsScriptExecutionAPI_03\" width=\"772\" height=\"331\" class=\"alignnone size-full wp-image-6329\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_03.jpg 772w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_03-300x129.jpg 300w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_04.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_04.jpg\" alt=\"GoogleAppsScriptExecutionAPI_04\" width=\"315\" height=\"198\" class=\"alignnone size-full wp-image-6330\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_04.jpg 315w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_04-300x189.jpg 300w\" sizes=\"auto, (max-width: 315px) 100vw, 315px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_05.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_05.jpg\" alt=\"GoogleAppsScriptExecutionAPI_05\" width=\"581\" height=\"417\" class=\"alignnone size-full wp-image-6331\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_05.jpg 581w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_05-300x215.jpg 300w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/a><\/p>\n<li>\u30b7\u30fc\u30c8\u540d\u304c\u53d6\u5f97\u3067\u304d\u308c\u3070\u52d5\u4f5c\u78ba\u8a8d\u7d42\u4e86\u3067\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_06.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_06.jpg\" alt=\"GoogleAppsScriptExecutionAPI_06\" width=\"388\" height=\"163\" class=\"alignnone size-full wp-image-6332\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_06.jpg 388w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_06-300x126.jpg 300w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/a>\n<\/ol>\n<h4 class=\"style4a\">API ID\u3068\u30b9\u30b3\u30fc\u30d7\u306e\u53d6\u5f97<\/h4>\n<ol>\n<li>\u516c\u958b\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u5b9f\u884c\u53ef\u80fd API \u3068\u3057\u3066\u5c0e\u5165<\/span>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_07.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_07.jpg\" alt=\"GoogleAppsScriptExecutionAPI_07\" width=\"519\" height=\"217\" class=\"alignnone size-full wp-image-6333\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_07.jpg 519w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_07-300x125.jpg 300w\" sizes=\"auto, (max-width: 519px) 100vw, 519px\" \/><\/a><\/p>\n<li>\u5b9f\u884c\u53ef\u80fd API \u3068\u3057\u3066\u5c0e\u5165\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5165\u529b\u3057\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u5c0e\u5165<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_08.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_08.jpg\" alt=\"GoogleAppsScriptExecutionAPI_08\" width=\"445\" height=\"335\" class=\"alignnone size-full wp-image-6334\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_08.jpg 445w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_08-300x226.jpg 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/a><\/p>\n<li>\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u65b0\u3057\u3044\u30b9\u30b3\u30fc\u30d7\u304c\u691c\u51fa\u3055\u308c\u307e\u3057\u305f\u300d\u3068\u306e\u8b66\u544a\u304c\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u306f\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u7d9a\u884c<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_09.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_09.jpg\" alt=\"GoogleAppsScriptExecutionAPI_09\" width=\"446\" height=\"256\" class=\"alignnone size-full wp-image-6335\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_09.jpg 446w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_09-300x172.jpg 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/a><\/p>\n<li>\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u73fe\u5728\u306e API ID:<\/span>\u300d\u6b04\u306bAPI ID\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u30e1\u30e2\u5e33\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_10.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_10.jpg\" alt=\"GoogleAppsScriptExecutionAPI_10\" width=\"443\" height=\"433\" class=\"alignnone size-full wp-image-6336\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_10.jpg 443w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_10-300x293.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_10-64x64.jpg 64w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/a><\/p>\n<li>\u30d5\u30a1\u30a4\u30eb\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3<\/span>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_11.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_11.jpg\" alt=\"GoogleAppsScriptExecutionAPI_11\" width=\"311\" height=\"463\" class=\"alignnone size-full wp-image-6337\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_11.jpg 311w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_11-202x300.jpg 202w\" sizes=\"auto, (max-width: 311px) 100vw, 311px\" \/><\/a><\/p>\n<li>\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30b9\u30b3\u30fc\u30d7<\/span>\u300d\u30bf\u30d6\u306b\u8868\u793a\u3055\u308c\u308b OAuth \u30b9\u30b3\u30fc\u30d7\u3092\u30e1\u30e2\u5e33\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059(\u4eca\u56de\u306e\u5834\u5408\u306f https:\/\/www.googleapis.com\/auth\/spreadsheets )\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_12.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_12.jpg\" alt=\"GoogleAppsScriptExecutionAPI_12\" width=\"599\" height=\"208\" class=\"alignnone size-full wp-image-6338\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_12.jpg 599w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_12-300x104.jpg 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a>\n<\/ol>\n<h4 class=\"style4a\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306e\u53d6\u5f97<\/h4>\n<ol>\n<li>\u30ea\u30bd\u30fc\u30b9\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">Developers Console \u30d7\u30ed\u30b8\u30a7\u30af\u30c8<\/span>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_13.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_13.jpg\" alt=\"GoogleAppsScriptExecutionAPI_13\" width=\"536\" height=\"230\" class=\"alignnone size-full wp-image-6339\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_13.jpg 536w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_13-300x129.jpg 300w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/a><\/p>\n<li>Developers Console \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300c\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u73fe\u5728\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u306e\u4e0b\u306b\u3042\u308b\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_14.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_14.jpg\" alt=\"GoogleAppsScriptExecutionAPI_14\" width=\"779\" height=\"476\" class=\"alignnone size-full wp-image-6340\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_14.jpg 779w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_14-300x183.jpg 300w\" sizes=\"auto, (max-width: 779px) 100vw, 779px\" \/><\/a><\/p>\n<li>Developers Console\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300cAPI\u3068\u8a8d\u8a3c\u300d\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">API<\/span>\u300d\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<li>API \u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u691c\u7d22\u30dc\u30c3\u30af\u30b9\u306b\u300c<span style=\"color: #ff0000; font-weight: bold;\">Execution<\/span>\u300d\u3068\u5165\u529b\u3057\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">Google Apps Script Execution API<\/span>\u300d\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_15.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_15.jpg\" alt=\"GoogleAppsScriptExecutionAPI_15\" width=\"840\" height=\"283\" class=\"alignnone size-full wp-image-6341\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_15.jpg 840w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_15-300x101.jpg 300w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_16.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_16.jpg\" alt=\"GoogleAppsScriptExecutionAPI_16\" width=\"524\" height=\"205\" class=\"alignnone size-full wp-image-6342\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_16.jpg 524w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_16-300x117.jpg 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/a><\/p>\n<li>\u300cAPI\u3068\u8a8d\u8a3c\u300d\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u8a8d\u8a3c\u60c5\u5831<\/span>\u300d\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<li>\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u8a8d\u8a3c\u60c5\u5831\u3092\u8ffd\u52a0<\/span>\u300d\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">OAuth 2.0 \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID<\/span>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_17.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_17.jpg\" alt=\"GoogleAppsScriptExecutionAPI_17\" width=\"735\" height=\"353\" class=\"alignnone size-full wp-image-6343\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_17.jpg 735w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_17-300x144.jpg 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/a><\/p>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID \u306e\u4f5c\u6210\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u4e0b\u8a18\u60c5\u5831\u3092\u5165\u529b\u3057\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u4f5c\u6210<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u203b \u901a\u5e38\u306f\u3053\u3053\u3067\u30a2\u30d7\u30ea\u306b\u5408\u308f\u305b\u305f\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7a2e\u985e\uff1a\u30a6\u30a7\u30d6 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/li>\n<li>\u540d\u524d\uff1aSample Client<\/li>\n<li>\u627f\u8a8d\u6e08\u307f\u306e JavaScript \u751f\u6210\u5143\uff1ahttps:\/\/developers.google.com<\/li>\n<li>\u627f\u8a8d\u6e08\u307f\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8 URI\uff1ahttps:\/\/developers.google.com\/oauthplayground<\/li>\n<\/ul>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_18.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_18.jpg\" alt=\"GoogleAppsScriptExecutionAPI_18\" width=\"857\" height=\"648\" class=\"alignnone size-full wp-image-6344\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_18.jpg 857w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_18-300x227.jpg 300w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\" \/><\/a><\/p>\n<li>OAuth \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u308b\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID<\/span>\u300d\u3068\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30b7\u30fc\u30af\u30ec\u30c3\u30c8<\/span>\u300d\u3092\u30e1\u30e2\u5e33\u306b\u30b3\u30d4\u30fc\u3057\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">OK<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_19.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_19.jpg\" alt=\"GoogleAppsScriptExecutionAPI_19\" width=\"516\" height=\"249\" class=\"alignnone size-full wp-image-6345\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_19.jpg 516w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_19-300x145.jpg 300w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><\/a>\n<\/ol>\n<h4 class=\"style4a\">OAuth Playground\u306b\u3088\u308b\u52d5\u4f5c\u78ba\u8a8d<\/h4>\n<ol>\n<li>\u300c<a href=\"https:\/\/developers.google.com\/oauthplayground\/\" title=\"OAuth 2.0 Playground\" target=\"_blank\">OAuth Playground<\/a>\u300d\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<li>OAuth 2.0 Configuration\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">Use your own OAuth credentials<\/span>\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001\u300cOAuth Client ID:\u300d\u6b04\u3068\u300cOAuth Client secret:\u300d\u6b04\u306b\u3001\u30b3\u30d4\u30fc\u3057\u3066\u304a\u3044\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_20.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_20.jpg\" alt=\"GoogleAppsScriptExecutionAPI_20\" width=\"1280\" height=\"802\" class=\"alignnone size-full wp-image-6346\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_20.jpg 1280w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_20-300x188.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_20-1024x642.jpg 1024w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n<li>Step 1 Select &#038; authorize APIs\u306b\u3042\u308b\u300c<span style=\"color: #ff0000; font-weight: bold;\">Input your own scopes<\/span>\u300d\u6b04\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u3044\u305f\u30b9\u30b3\u30fc\u30d7\u3092\u8cbc\u308a\u4ed8\u3051\u300c<span style=\"color: #ff0000; font-weight: bold;\">Authorize APIs<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_21.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_21.jpg\" alt=\"GoogleAppsScriptExecutionAPI_21\" width=\"503\" height=\"895\" class=\"alignnone size-full wp-image-6347\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_21.jpg 503w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_21-169x300.jpg 169w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/a><\/p>\n<li>\u8a31\u53ef\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u8a31\u53ef<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_22.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_22.jpg\" alt=\"GoogleAppsScriptExecutionAPI_22\" width=\"493\" height=\"313\" class=\"alignnone size-full wp-image-6348\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_22.jpg 493w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_22-300x190.jpg 300w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/a><\/p>\n<li>Step 2 Exchange authorization code for tokens\u306bAuthorization code\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">Exchange authorization code for tokens<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_23.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_23.jpg\" alt=\"GoogleAppsScriptExecutionAPI_23\" width=\"494\" height=\"570\" class=\"alignnone size-full wp-image-6349\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_23.jpg 494w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_23-260x300.jpg 260w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/a><\/p>\n<li>Step 3 Configure request to API\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u9805\u76ee\u3092\u8a2d\u5b9a\u3057\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">Send the request<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<ul>\n<li>HTTP Method\uff1aPOST<\/li>\n<li>Request URI\uff1ahttps:\/\/script.googleapis.com\/v1\/scripts\/(API ID):run<\/li>\n<li>Content-Type\uff1aapplication\/json<\/li>\n<li>Enter request body\uff1a<\/li>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">{\r\n    'function': 'getSheetNames',\r\n    'parameters': '(\u30b7\u30fc\u30c8ID)',\r\n    'devMode': true\r\n}<\/pre>\n<\/ul>\n<p><span style=\"color: #ff0000; font-weight: bold;\">\u203b \u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306e\u8aac\u660e\u306f\u300c<a href=\"http:\/\/qiita.com\/soundTricker\/items\/1bcfc5c9e80d29a7ae4b\" title=\"gasja - GAS\u306eExecution API\u3092\u4f7f\u3063\u3066GAS\u3092\u5916\u90e8\u304b\u3089\u3076\u3063\u53e9\u304f - Qiita\" target=\"_blank\">GAS\u306eExecution API\u3092\u4f7f\u3063\u3066GAS\u3092\u5916\u90e8\u304b\u3089\u3076\u3063\u53e9\u304f<\/a>\u300d\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_24.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_24.jpg\" alt=\"GoogleAppsScriptExecutionAPI_24\" width=\"502\" height=\"581\" class=\"alignnone size-full wp-image-6350\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_24.jpg 502w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_24-259x300.jpg 259w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/a><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_25.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_25.jpg\" alt=\"GoogleAppsScriptExecutionAPI_25\" width=\"491\" height=\"194\" class=\"alignnone size-full wp-image-6351\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_25.jpg 491w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_25-300x119.jpg 300w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/a><\/p>\n<li>\u7121\u4e8b\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u547c\u3073\u51fa\u305b\u308c\u3070\u3001JSON\u5f62\u5f0f\u3067\u7d50\u679c\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/li>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_26.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_26.jpg\" alt=\"GoogleAppsScriptExecutionAPI_26\" width=\"1249\" height=\"739\" class=\"alignnone size-full wp-image-6352\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_26.jpg 1249w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_26-300x178.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_26-1024x606.jpg 1024w\" sizes=\"auto, (max-width: 1249px) 100vw, 1249px\" \/><\/a>\n<\/ol>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u300c<a href=\"http:\/\/qiita.com\/soundTricker\/items\/1bcfc5c9e80d29a7ae4b\" title=\"gasja - GAS\u306eExecution API\u3092\u4f7f\u3063\u3066GAS\u3092\u5916\u90e8\u304b\u3089\u3076\u3063\u53e9\u304f - Qiita\" target=\"_blank\">GAS\u306eExecution API\u3092\u4f7f\u3063\u3066GAS\u3092\u5916\u90e8\u304b\u3089\u3076\u3063\u53e9\u304f<\/a>\u300d\u3092\u898b\u306a\u304c\u3089API\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u7279\u306b\u554f\u984c\u3082\u306a\u304f\u52d5\u4f5c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u62e1\u5f35\u30b5\u30fc\u30d3\u30b9\u306eURL Shortener API\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u3092\u547c\u3073\u51fa\u305d\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">function getShortUrl(url){\r\n  return UrlShortener.Url.insert({longUrl:url}).id\r\n}<\/pre>\n<p>\u4e0b\u8a18\u306e<span style=\"color: #ff0000; font-weight: bold;\">PERMISSION_DENIED<\/span>\u30a8\u30e9\u30fc\u304c\u8fd4\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">HTTP\/1.1 403 Forbidden\r\nAlternate-protocol: 443:quic,p=1\r\nContent-length: 138\r\nX-xss-protection: 1; mode=block\r\nX-content-type-options: nosniff\r\nTransfer-encoding: chunked\r\nVary: Origin, X-Origin, Referer\r\nServer: ESF\r\n-content-encoding: gzip\r\nCache-control: private\r\nDate: Fri, 16 Oct 2015 02:20:59 GMT\r\nX-frame-options: SAMEORIGIN\r\nAlt-svc: quic=&quot;:443&quot;; p=&quot;1&quot;; ma=604800\r\nContent-type: application\/json; charset=UTF-8\r\nWww-authenticate: Bearer realm=&quot;https:\/\/accounts.google.com\/&quot;, error=&quot;insufficient_scope&quot;, scope=&quot;https:\/\/www.googleapis.com\/auth\/directory.group https:\/\/spreadsheets.google.com\/feeds\/worksheets\/ https:\/\/sites.google.com\/feeds\/ https:\/\/apps-apis.google.com\/a\/feeds\/ https:\/\/mail.google.com\/mail\/ https:\/\/www.google.com\/m8\/feeds http:\/\/mail.google.com\/ https:\/\/www.googleapis.com\/auth\/script.storage https:\/\/www.googleapis.com\/auth\/forms https:\/\/apps-apis.google.com\/a\/feeds https:\/\/www.googleapis.com\/auth\/admin.directory.user https:\/\/mail.google.com\/mail https:\/\/www.googleapis.com\/auth\/drive https:\/\/spreadsheets.google.com\/feeds https:\/\/www.googleapis.com\/auth\/script.webapp.deploy https:\/\/www.googleapis.com\/auth\/admin.directory.group https:\/\/www.googleapis.com\/auth\/groups http:\/\/sites.google.com\/feeds\/#readonly https:\/\/mail.google.com https:\/\/www.google.com\/calendar\/feeds\/ http:\/\/mail.google.com https:\/\/www.google.com\/calendar\/feeds\/default\/owncalendars\/full https:\/\/apps-apis.google.com\/a\/feeds\/alias\/ https:\/\/www.googleapis.com\/auth\/forms.currentonly https:\/\/www.googleapis.com\/auth\/directory.user https:\/\/www.googleapis.com\/auth\/userinfo#email https:\/\/www.google.com\/m8\/feeds\/contacts\/default\/full https:\/\/www.googleapis.com\/auth\/gpa https:\/\/www.googleapis.com\/auth\/script.send_mail http:\/\/sites.google.com\/feeds https:\/\/www.google.com\/m8\/feeds\/groups\/ https:\/\/www.googleapis.com\/auth\/calendar https:\/\/www.google.com\/m8\/feeds\/photos\/ tag:google.com,2010:auth\/groups2 https:\/\/mail.google.com\/mail\/feed\/atom https:\/\/www.googleapis.com\/auth\/sqlservice https:\/\/www.googleapis.com\/auth\/documents https:\/\/www.google.com\/m8\/feeds\/contacts https:\/\/www.google.com\/m8\/feeds\/groups https:\/\/www.google.com\/m8\/feeds\/profiles https:\/\/spreadsheets.google.com\/feeds\/spreadsheets https:\/\/sites.google.com\/feeds\/#readonly https:\/\/www.googleapis.com\/auth\/dynamiccreatives https:\/\/apps-apis.google.com\/a\/feeds\/groups\/ https:\/\/www.googleapis.com\/auth\/script.cpanel http:\/\/sites.google.com\/feeds\/ https:\/\/www.googleapis.com\/auth\/contacts https:\/\/www.googleapis.com\/auth\/script.external_request https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/spreadsheets https:\/\/www.googleapis.com\/auth\/apps.directory.user http:\/\/spreadsheets.google.com\/feeds\/ https:\/\/www-opensocial.googleusercontent.com\/api\/people\/@me\/@self https:\/\/mail.google.com\/ https:\/\/www.googleapis.com\/auth\/apps.directory.group https:\/\/sites.google.com\/feeds https:\/\/www.google.com\/m8\/feeds\/photos https:\/\/www.google.com\/m8\/feeds\/profiles\/ http:\/\/www.google.com\/calendar\/feeds\/default\/allcalendars\/full https:\/\/mail.google.com\/a\/ https:\/\/www.google.com\/m8\/feeds\/ https:\/\/mail.google.com\/mail\/feed\/atom\/ https:\/\/www.googleapis.com\/auth\/script.scriptapp https:\/\/www.googleapis.com\/auth\/documents.currentonly https:\/\/www.google.com\/calendar\/feeds https:\/\/www.google.com\/m8\/feeds\/contacts\/ https:\/\/spreadsheets.google.com\/feeds\/ https:\/\/www.googleapis.com\/auth\/spreadsheets.currentonly&quot;\r\n{\r\n  &quot;error&quot;: {\r\n    &quot;status&quot;: &quot;PERMISSION_DENIED&quot;, \r\n    &quot;message&quot;: &quot;Request had insufficient authentication scopes.&quot;, \r\n    &quot;code&quot;: 403\r\n  }\r\n}<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_27.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_27.jpg\" alt=\"GoogleAppsScriptExecutionAPI_27\" width=\"749\" height=\"749\" class=\"alignnone size-full wp-image-6353\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_27.jpg 749w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_27-150x150.jpg 150w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_27-300x300.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScriptExecutionAPI_27-64x64.jpg 64w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/a><\/p>\n<p>\u300c<a href=\"https:\/\/developers.google.com\/apps-script\/execution\/rest\/v1\/scripts\/run\" title=\"Method scripts.run  |  Apps Script  |  Google Developers\" target=\"_blank\">Method scripts.run<\/a>\u300d\u306b\u3082\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u73fe\u6642\u70b9\u3067\u306f\u3059\u3079\u3066\u306e\u30b9\u30b3\u30fc\u30d7\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u7121\u3055\u305d\u3046\u3067\u3059\u3002<br \/>\n\u3053\u306e\u3042\u305f\u308a\u306f\u4eca\u5f8c\u306b\u671f\u5f85\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u306d\uff01<\/p>\n<hr \/>\n<p><span style=\"color: #ff0000; font-weight: bold;\">2015\/11\/19 \u8ffd\u8a18\uff1a<\/span><br \/>\nVBA\u304b\u3089\u306e\u547c\u3073\u51fa\u3057\u306b\u3064\u3044\u3066\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\u30fbVBA\u30de\u30af\u30ed\u304b\u3089Google Apps Script Execution API\u3092\u547c\u3073\u51fa\u3059\u3002<\/strong><br \/>\n<a href=\"\/\/www.ka-net.org\/blog\/?p=6415\" title=\"VBA\u30de\u30af\u30ed\u304b\u3089Google Apps Script Execution API\u3092\u547c\u3073\u51fa\u3059\u3002 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">\/\/www.ka-net.org\/blog\/?p=6415<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u300c\u300cGAS Station #2\u300d\u306b\u53c2\u52a0\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u300d\u3067\u66f8\u3044\u305f\u901a\u308a\u3001\u5148\u9031GAS(Google Apps Script)\u306e\u30cf\u30f3\u30ba\u30aa\u30f3\u30a4\u30d9\u30f3\u30c8\u300cGAS Station #2\u300d\u306b\u53c2\u52a0\u3057\u3001\u65b0\u3057\u3044API\u300cApps Script  [&hellip;]","protected":false},"author":1,"featured_media":7113,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[126],"tags":[],"class_list":["post-6326","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Google.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1E2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6326"}],"version-history":[{"count":6,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6326\/revisions"}],"predecessor-version":[{"id":6424,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6326\/revisions\/6424"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7113"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}