{"id":7675,"date":"2020-08-17T15:00:04","date_gmt":"2020-08-17T06:00:04","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=7675"},"modified":"2020-08-13T03:04:19","modified_gmt":"2020-08-12T18:04:19","slug":"%e7%84%a1%e6%96%99%e3%81%a7%e7%8b%ac%e8%87%aa%e3%81%aeweb%e7%9b%a3%e8%a6%96%e3%83%84%e3%83%bc%e3%83%ab%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b%ef%bc%88google-apps-script%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=7675","title":{"rendered":"\u7121\u6599\u3067\u72ec\u81ea\u306eWeb\u76e3\u8996\u30c4\u30fc\u30eb\u3092\u3064\u304f\u308b\uff08Google Apps Script\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u5c11\u3057\u524d\u306b\u304a\u4ed5\u4e8b\u3068\u3057\u3066\u521d\u3081\u3066\u300c<strong>Google Apps Script<\/strong>\u300d\u3092\u4f7f\u3046\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u300c<strong>Google Apps Script\uff08GAS\uff09<\/strong>\u300d\u3068\u306f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u30b5\u30fc\u30d0\u30fc\u3092\u7528\u610f\u3057\u306a\u304f\u3066\u3082\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3067\u304d\u308b\u7121\u6599\u30b5\u30fc\u30d3\u30b9<\/strong><\/p>\n<p>\u306e\u3053\u3068\u3067\u3001<code>Google<\/code>\u304c\u6570\u591a\u304f\u63d0\u4f9b\u3059\u308b\u4ee5\u4e0b\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u9023\u643a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\ud83d\ude0a<\/p>\n<ul>\n<li>G\u30e1\u30fc\u30eb<\/li>\n<li>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8<\/li>\n<li>Google\u30de\u30c3\u30d7<\/li>\n<li>\u30ab\u30ec\u30f3\u30c0\u30fc<\/li>\n<\/ul>\n<p>\u306a\u3069\u306a\u3069\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u3053\u308c\u3089\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u901a\u3057\u3066\u7c21\u5358\u306b\u30e1\u30fc\u30eb\u9001\u4fe1\u3057\u305f\u308a\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u305f\u308a\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u3057\u304b\u3082\u2757<\/p>\n<p>\u30bf\u30a4\u30de\u30fc\u3067\u5b9a\u671f\u5b9f\u884c\u304c\u3067\u304d\u307e\u3059\u3057\u3001<code>JavaScript<\/code>\u30d9\u30fc\u30b9\u306e\u30b3\u30fc\u30c9\u306a\u306e\u3067\u65b0\u3057\u304f\u52c9\u5f37\u3059\u308b\u3053\u3068\u306f\u5c11\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u3053\u306e<code>GAS<\/code>\u3092\u4f7f\u3063\u3066\u3001<strong>\u300c\u30b5\u30a4\u30c8\u304c\u843d\u3061\u3066\u3044\u306a\u3044\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u300d<\/strong>\u5e38\u6642\u76e3\u8996\u30c4\u30fc\u30eb\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u306e\u304a\u5f79\u306b\u7acb\u3066\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2173 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png\" alt=\"\" width=\"300\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24-281x300.png 281w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\u300c\u5fd9\u3057\u304f\u3066\u5c0e\u5165\u3067\u304d\u306a\u304b\u3063\u305f\u65b0PC\u3078\u79fb\u884c\u3057\u307e\u3057\u305f\u3002<br \/>\n\u8cb7\u3063\u305f\u306e\u534a\u5e74\u524d\u30fb\u30fb\u30fb\ud83d\ude02\u300d<\/p>\n<h1>Google Apps Script\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001<code>GAS<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u6cd5\u304b\u3089\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001<a href=\"https:\/\/www.google.com\/drive\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Drive<\/a>\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u753b\u9762\u5de6\u5074\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c<strong>\u65b0\u898f<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7690\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_1.png\" alt=\"\" width=\"255\" height=\"136\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30e1\u30cb\u30e5\u30fc\u304c\u958b\u304f\u306e\u3067\u3001\u300c<strong>\u305d\u306e\u4ed6 &gt; Google Apps Script<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7691\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_2.png\" alt=\"\" width=\"640\" height=\"582\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_2.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_2-300x273.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u30da\u30fc\u30b8\u79fb\u52d5\u3059\u308b\u3068\u30a8\u30c7\u30a3\u30bf\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u3053\u3053\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7689\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_3.png\" alt=\"\" width=\"447\" height=\"200\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_3.png 447w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_3-300x134.png 300w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/p>\n<h1>GAS\u3067\u30b5\u30fc\u30d0\u30fc\u304c\u843d\u3061\u3066\u3044\u305f\u3089\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304f<\/h1>\n<p>\u3067\u306f\u3001\u30e1\u30a4\u30f3\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304f\u90e8\u5206\u3067\u3059\u3002<br \/>\n\u5b9f\u88c5\u3057\u305f\u3044\u8a73\u7d30\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u7279\u5b9a\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c 200 \u4ee5\u5916\u306a\u3089\u30b5\u30a4\u30c8\u30c0\u30a6\u30f3\u3068\u3059\u308b<\/li>\n<li>\u30b5\u30a4\u30c8\u30c0\u30a6\u30f3\u3057\u3066\u3044\u305f\u3089\u3001\u7279\u5b9a\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b<\/li>\n<\/ul>\n<p>\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\/* \u30b5\u30a4\u30c8\u3092\u76e3\u8996\u3057\u3001\u30c0\u30a6\u30f3\u3057\u3066\u305f\u3089\u30e1\u30fc\u30eb\u901a\u77e5 *\/\r\n\r\n<strong>const URL = 'http:\/\/httpstat.us\/408'; \/\/ \u76e3\u8996\u3057\u305f\u3044\u30b5\u30a4\u30c8\u306eURL<\/strong>\r\n<strong>const EMAIL = 'notification@example.com'; \/\/ \u30a8\u30e9\u30fc\u3092\u77e5\u3089\u305b\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/strong>\r\n\r\n<strong>function main() {<\/strong>\r\n\r\n<strong>    if(isUrlDown()) { \/\/ \u30b5\u30a4\u30c8\u304c\u843d\u3061\u3066\u305f\u3068\u304d\uff08\u30e1\u30fc\u30eb\u901a\u77e5\uff09<\/strong>\r\n\r\n<strong>        sendMail();<\/strong>\r\n\r\n<strong>    } else {<\/strong>\r\n\r\n<strong>        Logger.log('\u6b63\u5e38\u306b\u4f5c\u52d5\u3057\u3066\u3044\u307e\u3059'); \/\/ \u30ed\u30b0\u306b\u51fa\u529b<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>}<\/strong>\r\n\r\n<strong>function isUrlDown() {<\/strong>\r\n\r\n<strong>    const response = UrlFetchApp.fetch(URL, {<\/strong>\r\n<strong>        muteHttpExceptions: true \/\/ \u4f8b\u5916\u51e6\u7406\u306f\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b<\/strong>\r\n<strong>    });<\/strong>\r\n\r\n<strong>    return (response.getResponseCode() !== 200); \/\/ HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c\u3001\u300c200\u300d\u4ee5\u5916\u306f\u30a8\u30e9\u30fc\u3068\u3059\u308b<\/strong>\r\n\r\n<strong>}<\/strong>\r\n\r\n<strong>function sendMail() {<\/strong>\r\n\r\n<strong>    const dateTime = Utilities.formatDate(new Date(), 'JST', 'yyyy\u5e74MM\u6708dd\u65e5 HH:mm');<\/strong>\r\n\r\n<strong>    MailApp.sendEmail({<\/strong>\r\n<strong>        to: EMAIL,<\/strong>\r\n<strong>        subject: '\u3010\u30b5\u30a4\u30c8\u30c0\u30a6\u30f3\u3011\u691c\u77e5\u3057\u307e\u3057\u305f',<\/strong>\r\n<strong>        htmlBody: `<\/strong>\r\n<strong>            \u4ee5\u4e0b\u306eURL\u3067\u30b5\u30a4\u30c8\u30c0\u30a6\u30f3\u3092\u691c\u77e5\u3057\u307e\u3057\u305f\u3002&lt;hr&gt;<\/strong>\r\n<strong>            URL\uff1a &lt;a href=\"${URL}\"&gt;${URL}&lt;\/a&gt;&lt;br&gt;<\/strong>\r\n<strong>            \u65e5\u6642\uff1a ${dateTime}<\/strong>\r\n<strong>        `<\/strong>\r\n<strong>    });<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<p>\u3067\u306f\u3001\u3053\u306e\u30b3\u30fc\u30c9\u306e\u8a73\u7d30\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u5b9a\u6570<\/strong><\/p>\n<p>\u307e\u305a\u3001\u4ee5\u4e0b\u306e\uff12\u3064\u306f\u5b9a\u6570\u3067\u7686\u3055\u3093\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>URL\uff1a \u76e3\u8996\u3059\u308b\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306eURL<\/li>\n<li>EMAIL: \u30b5\u30a4\u30c8\u30c0\u30a6\u30f3\u3092\u691c\u77e5\u3057\u305f\u3068\u304d\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u5148<\/li>\n<\/ul>\n<p>\u203b \u306a\u304a\u3001URL\u304c\u3053\u306e\u307e\u307e\u3060\u3068\u5fc5\u305a<code>408<\/code>\u30b3\u30fc\u30c9\u304c\u8fd4\u3063\u3066\u304f\u308b\u306e\u3067\u3001\u6bce\u56de\u30e1\u30fc\u30eb\u9001\u4fe1\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>main()<\/strong><\/p>\n<p>\u3053\u306e\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067Web\u76e3\u8996\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><strong>isUrlDown()<\/strong><\/p>\n<p>\u5b9a\u6570<code>URL<\/code>\u306bHTTP\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3057\u3066\u3001<code>200<\/code>\u4ee5\u5916\u306a\u3089\u30b5\u30a4\u30c8\u304c\u30c0\u30a6\u30f3\u3057\u3066\u3044\u308b\u3068\u5224\u5225\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u30b3\u30fc\u30c9\u306f<code>GET<\/code>\u9001\u4fe1\u306b\u306a\u308a\u307e\u3059\u304c\u3001<code>POST<\/code>\u3067\u9001\u4fe1\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>\/\/ POST\u306e\u5834\u5408\r\n<strong>const params = { key: 'value' };<\/strong>\r\n<strong>const response = UrlFetchApp.fetch(url, {<\/strong>\r\n<strong>  method: 'post',<\/strong>\r\n<strong>  contentType: 'application\/json',<\/strong>\r\n<strong>  payload: JSON.stringify(params),<\/strong>\r\n<strong>  muteHttpExceptions: true<\/strong>\r\n<strong>});<\/strong><\/pre>\n<p>\u307e\u305f\u3001\u4eca\u56de\u306e\u5834\u5408\u3001<code>muteHttpExceptions: true<\/code>\u306f\u5fc5\u9808\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u300c<strong>\u305f\u3068\u3048\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3082Exception\u3092\u5b9f\u884c\u3057\u306a\u3044<\/strong>\u300d\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u3046\u3057\u306a\u3044\u3068\u30b3\u30fc\u30c9\u304c\u9014\u4e2d\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3067\u3059\u3002<\/p>\n<p><strong>sendMail()<\/strong><\/p>\n<p>\u30b5\u30a4\u30c8\u30c0\u30a6\u30f3\u3092\u691c\u77e5\u3057\u305f\u3068\u304d\u306b\u3001\u305d\u306e\u3053\u3068\u3092\u77e5\u3089\u305b\u308b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u4e2d\u3067\u5b9a\u6570<code>EMAIL<\/code>\u304c\u547c\u3070\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u3061\u306a\u307f\u306b<\/h1>\n<p>\u30b3\u30fc\u30c9\u3068\u3057\u3066\u306f\u3053\u308c\u3067\u5b8c\u6210\u3067\u3059\u304c\u3001<code>GAS<\/code>\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u3082\u306e\u3092\u304a\u307e\u3051\u3068\u3057\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>\u521d\u3081\u3066\u4fdd\u5b58\u3059\u308b\u3068\u304d\u306e\u6319\u52d5<\/h2>\n<p>\u304a\u305d\u3089\u304f\u521d\u3081\u3066\u30b3\u30fc\u30c9\u3092\u4fdd\u5b58\u3059\u308b\u3068\u304d\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092\u5909\u66f4\u3059\u308b\u3088\u3046\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u540d\u524d\u306f\u306a\u3093\u3067\u3082\u3044\u3044\u306e\u3067\u5165\u529b\u3057\u3066<strong>\u300cOK\u300d<\/strong>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7688\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_4.png\" alt=\"\" width=\"453\" height=\"177\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_4.png 453w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_4-300x117.png 300w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><\/p>\n<h2>\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3059\u308b<\/h2>\n<p>\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u753b\u9762\u5de6\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u540d\u306b\u8868\u793a\u3055\u308c\u308c\u3066\u3044\u308b\u300c\u25bc\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c<strong>Rename<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7687\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_5.png\" alt=\"\" width=\"227\" height=\"244\" \/><\/p>\n<h2>\u6210\u529f\u3057\u305f\u3068\u304d\u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p><code>GAS<\/code>\u306b\u306f\u30b3\u30fc\u30c9\u5b9f\u884c\u5f8c\u306b\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u6a5f\u80fd\u3082\u3042\u308a\u3001\u4eca\u56de\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>Logger.log('\u6b63\u5e38\u306b\u4f5c\u52d5\u3057\u3066\u3044\u307e\u3059');<\/strong><\/pre>\n<p>\u30ed\u30b0\u306e\u8868\u793a\u306f\u3001<code>Ctrl + Enter<\/code> \u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7676\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_16.png\" alt=\"\" width=\"340\" height=\"90\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_16.png 340w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_16-300x79.png 300w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u30da\u30fc\u30b8\u4e0a\u90e8\u306b\u3042\u308b\u30e1\u30cb\u30e5\u30fc\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u5b9f\u884c\u3059\u308b\u95a2\u6570\u304c\u300c<strong>main<\/strong>\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001\u518d\u751f\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7692\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_17.png\" alt=\"\" width=\"438\" height=\"104\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_17.png 438w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_17-300x71.png 300w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u521d\u3081\u3066\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u78ba\u8a8d\u306e\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7684\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_8.png\" alt=\"\" width=\"582\" height=\"299\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_8.png 582w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_8-300x154.png 300w\" sizes=\"auto, (max-width: 582px) 100vw, 582px\" \/><\/p>\n<p>\u3053\u306e\u5834\u5408\u3001\u300c<strong>\u8a73\u7d30<\/strong>\u300d\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u3055\u3089\u306b\u300c<strong>\uff08\u5b89\u5168\u3067\u306f\u306a\u3044\u30da\u30fc\u30b8\uff09\u306b\u79fb\u52d5<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7683\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_9.png\" alt=\"\" width=\"580\" height=\"117\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_9.png 580w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_9-300x61.png 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a31\u53ef\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u300c<strong>\u8a31\u53ef<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7682\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_10.png\" alt=\"\" width=\"556\" height=\"554\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_10.png 556w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_10-300x300.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_10-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_10-100x100.png 100w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/p>\n<p>\u5b9f\u884c\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001<code>GAS<\/code>\u304b\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30fc\u30eb\u304c\u5c4a\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7681\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_11.png\" alt=\"\" width=\"286\" height=\"91\" \/><\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<h1>\u00a0\u30bf\u30a4\u30de\u30fc\u3067\u5b9a\u671f\u5b9f\u884c\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u5148\u307b\u3069\u5b9f\u884c\u3057\u305f\u30b3\u30fc\u30c9\u304c\u5b9a\u671f\u7684\u306b\u30bf\u30a4\u30de\u30fc\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30da\u30fc\u30b8\u4e0a\u90e8\u306b\u3042\u308b\u6642\u8a08\u306e\u30de\u30fc\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7680\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_12.png\" alt=\"\" width=\"430\" height=\"126\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_12.png 430w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_12-300x88.png 300w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30da\u30fc\u30b8\u304c\u5207\u308a\u66ff\u308f\u308b\u306e\u3067\u3001\u30da\u30fc\u30b8\u53f3\u4e0b\u306b\u3042\u308b\u300c<strong>\u30c8\u30ea\u30ac\u30fc\u3092\u8ffd\u52a0<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7679\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_13.png\" alt=\"\" width=\"184\" height=\"54\" \/><\/p>\n<p>\u304a\u597d\u307f\u3067\u5b9f\u884c\u3059\u308b\u9593\u9694\u3092\u5909\u66f4\u3057\u3066\u4fdd\u5b58\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7678\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_14.png\" alt=\"\" width=\"500\" height=\"533\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_14.png 500w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_14-281x300.png 281w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>\u3061\u306a\u307f\u306b\u4fdd\u5b58\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u30ea\u30b9\u30c8\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7677\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_15.png\" alt=\"\" width=\"640\" height=\"115\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_15.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/08\/gas_server_watch_15-300x54.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u3044\u3064\u3082\u3068\u9055\u3063\u3066<code>Google Apps Script<\/code>\u306e\u5185\u5bb9\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306f<code>HTTP<\/code>\u30a2\u30af\u30bb\u30b9\u3068\u30e1\u30fc\u30eb\u9001\u4fe1\u3060\u3051\u3067\u3057\u305f\u304c\u3001\u4ed6\u306b\u3082\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u306a\u3069\u8907\u96d1\u306a\u3053\u3068\u3082\u5b9f\u884c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u5b9a\u671f\u7684\u306b\u30c7\u30fc\u30bf\u53d6\u5f97\u3057\u305f\u308a\u3001\u4f5c\u6210\u3059\u308b\u306b\u306f\u30d4\u30c3\u30bf\u30ea\u3067\u3059\u306d\u3002<\/p>\n<p>\u305f\u3060\u3001\u4e00\u70b9\u6c17\u306b\u306a\u308b\u3053\u3068\u3068\u3044\u3048\u3070\u3001\u3053\u308c\u304c<code>Google<\/code>\u306e\u30b5\u30fc\u30d3\u30b9\u3060\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001<code>Google<\/code>\u306f\u5229\u76ca\u304c\u4e0a\u304c\u3063\u3066\u3044\u306a\u3044\u30b5\u30a4\u30c8\u306f\u3059\u3050\u306b\u9589\u9396\u3059\u308b\u6c7a\u65ad\u3092\u3059\u308b\u306e\u3067\u3001\u3044\u3064\u307e\u3067\u3053\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u7d9a\u304f\u304b\u3061\u3087\u3063\u3068\u5fc3\u914d\u3060\u3063\u305f\u308a\u3057\u307e\u3059\u3002\uff08\u306a\u3093\u306a\u3089\u6709\u6599\u306b\u79fb\u884c\u3057\u3066\u304f\u308c\u305f\u3089\u307e\u3060\u3044\u3044\u3093\u3067\u3059\u3051\u3069\u306d\u30fb\u30fb\u30fb\uff09<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001\u3053\u308c\u3060\u3051\u306e\u6a5f\u80fd\u304c\u7c21\u5358\u306b\u4f7f\u3048\u308b\u306e\u306f\u3068\u3066\u3082\u5b09\u3057\u3044\u3067\u3059\u306d\u3002\u958b\u767a\u74b0\u5883\u3092\u6574\u3048\u306a\u304f\u3066\u3082\u3044\u3044\u306e\u3067\u521d\u5fc3\u8005\u306b\u3082\u512a\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p>\u305c\u3072\u307f\u306a\u3055\u3093\u3082\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6071 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_8.png\" alt=\"\" width=\"216\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_8.png 216w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_8-203x300.png 203w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/>\u300c\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u306e\u300cC\u300d\u307f\u305f\u3044\u306a\u5f62\u306e<br \/>\n\u30de\u30c3\u30b5\u30fc\u30b8\u68d2\u3067\u80cc\u4e2d\u3092\u30b0\u30ea\u30b0\u30ea\u3057\u3066\u307e\u3059\ud83d\udc4d\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u5c11\u3057\u524d\u306b\u304a\u4ed5\u4e8b\u3068\u3057\u3066\u521d\u3081\u3066\u300cGoogle Apps Script\u300d\u3092\u4f7f\u3046\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u300cGoogle Apps Script\uff08GAS\uff09\u300d\u3068\u306f\u3001  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=7675\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u7121\u6599\u3067\u72ec\u81ea\u306eWeb\u76e3\u8996\u30c4\u30fc\u30eb\u3092\u3064\u304f\u308b\uff08Google Apps Script\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":7696,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[221],"class_list":["post-7675","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-google-apps-script"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7675"}],"version-history":[{"count":4,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7675\/revisions"}],"predecessor-version":[{"id":7697,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7675\/revisions\/7697"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/7696"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}