{"id":2475,"date":"2021-01-12T21:49:23","date_gmt":"2021-01-12T12:49:23","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=2475"},"modified":"2021-01-13T20:03:07","modified_gmt":"2021-01-13T11:03:07","slug":"post-2475","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=2475","title":{"rendered":"GAS\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3092\u81ea\u52d5\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\uff5eREST API\u306b\u3088\u308b\u8a18\u4e8b\u306e\u65b0\u898f\u4f5c\u6210\u624b\u9806"},"content":{"rendered":"<p>Google Apps Script(GAS)\u3067\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eAPI\u3092\u5229\u7528\u3057\u305f\u8a18\u4e8b\u306e\u81ea\u52d5\u6295\u7a3f\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>WordPress\u306eREST API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u8a18\u4e8b\u6295\u7a3f\u3059\u308bGAS\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u3001\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u3084\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u5468\u308a\u3067\u30cf\u30de\u308a\u304c\u3061\u306a\u6ce8\u610f\u70b9\u3092\u89e3\u8aac\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30d6\u30ed\u30b0\u3092\u81ea\u52d5\u6295\u7a3f\u3057\u305f\u3044\u30cb\u30fc\u30ba<\/h2>\n<p>\u30d6\u30ed\u30b0\u904b\u55b6\u3092\u884c\u3063\u3066\u3044\u308b\u3068\u3001\u81ea\u5206\u3067\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u516c\u958b\u3059\u308b\u3068\u3044\u3046\u4ed6\u306b\u3001\u81ea\u52d5\u6295\u7a3f\u3092\u884c\u3044\u305f\u3044\u3068\u3044\u3046\u30cb\u30fc\u30ba\u304c\u6e67\u3044\u3066\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u8272\u3005\u306aWeb\u30b5\u30a4\u30c8\u306e\u60c5\u5831\u3092\u30af\u30ed\u30fc\u30ea\u30f3\u30b0\u3057\u3001\u305d\u308c\u3089\u306e\u60c5\u5831\u3092\u6574\u5f62\u3057\u305f\u4e0a\u3067\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u81ea\u52d5\u4f5c\u6210<\/li>\n<li>Youtube\u306eAPI\u304b\u3089\u52d5\u753b\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u3001\u7279\u5b9a\u30b8\u30e3\u30f3\u30eb\u306e\u52d5\u753b\u3092\u307e\u3068\u3081\u305f\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u81ea\u52d5\u4f5c\u6210<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u81ea\u52d5\u6295\u7a3f\u304c\u3067\u304d\u308c\u3070\u3001\u4eba\u624b\u3092\u304b\u3051\u308b\u3053\u3068\u306a\u304f\u30d6\u30ed\u30b0\u66f4\u65b0\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a18\u4e8b\u3092\u66f8\u304f\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u3001\u81ea\u5206\u306e\u8ca0\u62c5\u3092\uff10\u306b\u3057\u3066\u30d6\u30ed\u30b0\u904b\u55b6\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u30d6\u30ed\u30b0\u81ea\u52d5\u5316\u306f\u3068\u3066\u3082\u9b45\u529b\u7684\u3067\u3059\u3002<\/p>\n<h2>GAS\u3067Wordpress\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u81ea\u52d5\u6295\u7a3f<\/h2>\n<p>\u30d6\u30ed\u30b0\u306e\u4e2d\u3067\u3082\u6700\u3082\u4e00\u822c\u7684\u3067\u3042\u308bWordpress\u306b\u306f\u3001\u81ea\u52d5\u6295\u7a3f\u306e\u6a5f\u80fd\u3092\u5099\u3048\u305fAPI\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u3084\u672c\u6587\u3092\u7528\u610f\u3057\u305f\u4e0a\u3067\u3001Wordpress\u306eAPI\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u3053\u3068\u3067\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e\u81ea\u52d5\u6295\u7a3f\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067Wordpress\u306eAPI\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u3044\u306e\u304c\u3001Google Apps Script(GAS)\u3067\u3059\u3002<\/p>\n<p>GAS\u3067Wordpress\u306eAPI\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001\u904b\u55b6\u30d6\u30ed\u30b0\u306b\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u3084\u8a18\u4e8b\u672c\u6587\u3092\u9001\u4fe1\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7528\u610f\u30fb\u5b9f\u884c\u3059\u308b\u3068\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e\u81ea\u52d5\u6295\u7a3f\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306bGAS\u3067\u8272\u3005\u306aWeb\u30b5\u30a4\u30c8\u3092\u30af\u30ed\u30fc\u30ea\u30f3\u30b0\u3057\u3066\u60c5\u5831\u3092\u53ce\u96c6\u3059\u308b\u4ed5\u7d44\u307f\u3082\u69cb\u7bc9\u3057\u3066\u304a\u3051\u3070\u3001\u60c5\u5831\u53ce\u96c6\u2192\u30d6\u30ed\u30b0\u6295\u7a3f\u306e\u5b8c\u5168\u81ea\u52d5\u5316\u306eGAS\u30b7\u30b9\u30c6\u30e0\u304c\u5b9f\u73fe\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u307e\u305a\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306b\u8a18\u4e8b\u3092\u81ea\u52d5\u6295\u7a3f\u3059\u308b\u305f\u3081\u306e\u74b0\u5883\u69cb\u7bc9\u3068\u3001GAS\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u66f8\u304d\u65b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u81ea\u52d5\u6295\u7a3f\u3059\u308b\u305f\u3081\u306eAPI\u8a2d\u5b9a\u624b\u9806<\/h2>\n<p>Google Apps Script(GAS)\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u81ea\u52d5\u6295\u7a3f\u3092API\u3067\u884c\u3046\u305f\u3081\u306b\u306f\u3001\u307e\u305aAPI\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u74b0\u5883\u69cb\u7bc9\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u307e\u305a\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eAPI\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>\uff11\uff0e\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u7ba1\u7406\u753b\u9762\u3092\u958b\u304d\u3001\u300c\u30d7\u30e9\u30b0\u30a4\u30f3\uff1e\u65b0\u898f\u8ffd\u52a0\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2512\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_001.jpg\" alt=\"\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9API\u3092\u5229\u7528\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\" width=\"800\" height=\"412\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_001.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_001-300x155.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_001-768x396.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_001-530x273.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_001-565x291.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_001-710x366.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_001-725x373.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\uff12\uff0e\u53f3\u5074\u306e\u691c\u7d22\u6b04\u306b\u300cApplication Passwords\u300d\u3092\u5165\u529b\u3057\u3001\u4eca\u3059\u3050\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff06\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u6709\u52b9\u5316\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2513\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_002.jpg\" alt=\"\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eAPI\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u3001\u300cApplication Passwords\u300d\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\" width=\"800\" height=\"412\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_002-300x155.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_002-768x396.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_002-530x273.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_002-565x291.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_002-710x366.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_002-725x373.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\uff13\uff0e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u300cApplication Passwords\u300d\u3067\u5229\u7528\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u3092\u884c\u3046\u305f\u3081\u3001\u300c\u30e6\u30fc\u30b6\u30fc\uff1e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2514\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_003.jpg\" alt=\"\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d7\u30e9\u30b0\u30a4\u30f3\u300cApplication Passwords\u300d\u3067\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u3092\u884c\u3046\u305f\u3081\u3001\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u8a2d\u5b9a\u3092\u884c\u3046\" width=\"800\" height=\"412\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_003.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_003-300x155.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_003-768x396.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_003-530x273.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_003-565x291.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_003-710x366.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_003-725x373.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\uff14\uff0e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u30da\u30fc\u30b8\u306bApplication Passwords\u7b87\u6240\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u5165\u529b\u3057\u3001\u300cAdd New\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u65b0\u898f\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2518\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_005.jpg\" alt=\"Application Passwords\u3067API\u901a\u4fe1\u3067\u5229\u7528\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u751f\u6210\u3059\u308b\" width=\"800\" height=\"455\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_005.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_005-300x171.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_005-768x437.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_005-530x301.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_005-565x321.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_005-710x404.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_005-725x412.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><strong>\u203b\u30e6\u30fc\u30b6\u30fc\u540d\u306f\u666e\u6bb5\u30ed\u30b0\u30a4\u30f3\u3067\u5229\u7528\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u63c3\u3048\u3066\u4e0b\u3055\u3044\u3002<\/strong><\/p>\n<p>\uff15\uff0e\u30e6\u30fc\u30b6\u30fc\u65b0\u898f\u4f5c\u6210\u5f8c\u3001\u30e6\u30fc\u30b6\u30fc\u7528\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u30e1\u30e2\u3092\u63a7\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2519\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_006.jpg\" alt=\"Application Passwords\u306e\u30e6\u30fc\u30b6\u30fc\u65b0\u898f\u4f5c\u6210\u6642\u306b\u8868\u793a\u3055\u308c\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30e1\u30e2\u306a\u3069\u3067\u63a7\u3048\u3066\u304a\u304f\" width=\"800\" height=\"428\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_006.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_006-300x161.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_006-768x411.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_006-530x284.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_006-565x302.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_006-710x380.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_006-725x388.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u203b\u3053\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f2\u5ea6\u3068\u8868\u793a\u3055\u308c\u305a\u3001\u7121\u304f\u3057\u305f\u5834\u5408\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u518d\u4f5c\u6210\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u306e\u624b\u9806\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u305f\u3081\u306e\u74b0\u5883\u304c\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>Step5\u3067\u53d6\u5f97\u3057\u305f\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001GAS\u3067API\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>Application Passwords\u3067\u30a8\u30e9\u30fc\u8868\u793a\u304c\u51fa\u305f\u5834\u5408<\/h2>\n<p>Application Passwords\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u305f\u969b\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2515\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_004.jpg\" alt=\"\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u306e\u300cApplication Passwords\u300d\u3067\u753b\u50cf\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u30b5\u30fc\u30d0\u30fc\u306e.htaccess\u3092\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\" width=\"800\" height=\"327\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_004-300x123.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_004-768x314.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_004-530x217.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_004-565x231.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_004-710x290.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_004-725x296.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eAPI\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3063\u3066\u3082\u3001\u901a\u4fe1\u304c\u8a31\u53ef\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30b5\u30a4\u30c8\u306e\u30a2\u30af\u30bb\u30b9\u8a2d\u5b9a\u3092\u884c\u3046\u300c.htaccess\u300d\u306e\u8a18\u8ff0\u3092\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>Application Passwords\u5c0e\u5165\u5f8c\u306e.htaccess\u8a2d\u5b9a\u5185\u5bb9<\/h2>\n<p>Application Passwords\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a8\u30e9\u30fc\u3092\u89e3\u6d88\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u304c\u3042\u308b\u30b5\u30fc\u30d0\u30fc\u306e.htaccess\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u8ffd\u8a18\u304c\u5fc5\u8981\u306a\u8a18\u8ff0\u306f\u4ee5\u4e0b\u306e1\u884c\u3067\u3059\u3002<\/p>\n<p><em><strong>RewriteRule .* &#8211; [E=REMOTE_USER:%{HTTP:Authorization}]<\/strong><\/em><\/p>\n<p>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u753b\u9762\u304b\u3089.htaccess\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u3001Application Passwords\u3067\u30a8\u30e9\u30fc\u3092\u89e3\u6d88\u3059\u308b\u305f\u3081\u306e\u3001\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u3067\u306e.htaccess\u3092\u4fee\u6b63\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\uff11\uff0e\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u30c4\u30fc\u30eb\u306e\u753b\u9762\u3067\u300cFTP\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a\u300d\u304b\u3089WebFTP\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2520\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_007.jpg\" alt=\".htaccess\u3092\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u753b\u9762\u3067\u884c\u3046\" width=\"800\" height=\"399\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_007.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_007-300x150.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_007-768x383.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_007-530x264.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_007-565x282.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_007-710x354.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_007-725x362.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\uff12\uff0eWebFTP\u306e\u30ea\u30b9\u30c8\u304b\u3089\u300c.htaccess\u300d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u3001\u7de8\u96c6\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2521\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_008.jpg\" alt=\"\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u306eWebFTP\u304b\u3089.htaccess\u3092\u4fee\u6b63\u3059\u308b\" width=\"800\" height=\"423\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_008.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_008-300x159.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_008-768x406.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_008-530x280.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_008-565x299.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_008-710x375.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_008-725x383.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\uff13\uff0e\u300c.htaccess\u300d\u30d5\u30a1\u30a4\u30eb\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u5148\u7a0b\u7d39\u4ecb\u3057\u305f1\u884c\u3092\u8d64\u7dda\u90e8\u5206\u306e\u3088\u3046\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2522\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_009.jpg\" alt=\".htaccess\u306b\u300cRewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]\u300d\u3092\u8ffd\u52a0\u3057\u3066\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9API\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u8a31\u53ef\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\" width=\"800\" height=\"474\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_009.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_009-300x178.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_009-768x455.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_009-530x314.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_009-565x335.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_009-710x421.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_009-725x430.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u203b\u4f4d\u7f6e\u306b\u3088\u3063\u3066\u306f\u30a8\u30e9\u30fc\u304c\u89e3\u6d88\u3057\u306a\u3044\u30b1\u30fc\u30b9\u3082\u3042\u308b\u306e\u3067\u3001\u8a18\u8ff0\u7b87\u6240\u306b\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>.htaccess\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u5f8c\u3001\u518d\u5ea6Application Passwords \u306e\u753b\u9762\u3092\u8868\u793a\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3044\u308c\u3070\u3001\u5bfe\u5fdc\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h2>WordPress\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u3067REST API\u306e\u6709\u52b9\u5316\u3082<\/h2>\n<p>Google Apps Script(GAS)\u3067Wordpress\u306eREST API\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001Wordpress\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u3067REST API\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u822c\u7684\u306a\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067Wordpress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u65e5\u672c\u56fd\u5916\u306eIP\u30a2\u30c9\u30ec\u30b9\u304b\u3089REST API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u304d\u306a\u3044\u3088\u3046\u5236\u9650\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>GAS\u306e\u5834\u5408\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u5143\u30b5\u30fc\u30d0\u30fc\u306f\u65e5\u672c\u56fd\u5185\u306b\u306a\u304f\u3001\u30a2\u30e1\u30ea\u30ab\u306a\u3069\u306e\u56fd\u5916\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067Wordpress\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u3067REST API\u306e\u6d77\u5916\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u7121\u52b9\u306b\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u56de\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u30b7\u30a7\u30a2\u304c\u5927\u304d\u3044Xserver\u3068\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u3067\u306eREST API\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u7121\u52b9\u306b\u3059\u308b\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>Xserver\u306eREST API\u7121\u52b9\u5316\u624b\u9806<\/h3>\n<p>Xserver\u306eREST API\u3092\u7121\u52b9\u5316\u3059\u308b\u305f\u3081\u306b\u306f\u3001Xserver\u306e\u30b5\u30fc\u30d0\u30fc\u30d1\u30cd\u30eb\u306e\u7ba1\u7406\u753b\u9762\u3067\u64cd\u4f5c\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\uff11\uff0eXserver\u306e\u7ba1\u7406\u753b\u9762\u3067\u3001\u300cWordpress\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u300d\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2523\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_010.jpg\" alt=\"Xserver\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u306e\u56fd\u5916\u30a2\u30af\u30bb\u30b9\u3092\u7121\u52b9\u5316\u3059\u308b\" width=\"800\" height=\"571\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_010.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_010-300x214.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_010-768x548.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_010-530x378.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_010-565x403.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_010-710x507.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_010-725x517.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\uff12\uff0eWordpress\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u306e\u4e2d\u3067\u3001\u300c\u56fd\u5916IP\u30a2\u30af\u30bb\u30b9\u5236\u9650\u8a2d\u5b9a\u300d\u3067REST API\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u300cOFF\u306b\u3059\u308b\u300d\u306b\u5909\u66f4\u3057\u3001\u8a2d\u5b9a\u3059\u308b\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-2524\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_011.jpg\" alt=\"Xserver\u3067REST API\u3092\u7121\u52b9\u5316\u3059\u308b\u3053\u3068\u3067Google Apps Script(GAS)\u3067API\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u53ef\u80fd\u306b\u306a\u308b\u3002\" width=\"753\" height=\"529\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_011.jpg 753w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_011-300x211.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_011-530x372.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_011-565x397.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_011-710x499.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_011-725x509.jpg 725w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/p>\n<p>\u4ee5\u4e0a\u3067Xserver\u3067\u306eREST API\u306e\u56fd\u5916\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u89e3\u9664\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u306eREST API\u7121\u52b9\u5316\u624b\u9806<\/h3>\n<p>\u7d9a\u3044\u3066\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u3067\u306eREST API\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u7121\u52b9\u5316\u3059\u308b\u624b\u9806\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\uff11\uff0e\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u306e\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3001\u300cWordpress\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u300d\u306e\u753b\u9762\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2525\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_012.jpg\" alt=\"GAS\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u305f\u3081\u3001\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u306eWordpress\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\" width=\"800\" height=\"438\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_012.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_012-300x164.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_012-768x420.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_012-530x290.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_012-565x309.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_012-710x389.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_012-725x397.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\uff12\uff0eREST API\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u306e\u3068\u3053\u308d\u3067\u300c\u7121\u52b9\u5316\u3059\u308b\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u6709\u52b9\u2192\u7121\u52b9\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2526\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_013.jpg\" alt=\"\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u3067REST API\u306e\u56fd\u5916\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u7121\u52b9\u5316\u3057\u3001Google Apps Script(GAS)\u304b\u3089API\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\" width=\"800\" height=\"538\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_013.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_013-300x202.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_013-768x516.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_013-530x356.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_013-565x380.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_013-710x477.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_013-725x488.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306bWordpress\u306eREST API\u306e\u56fd\u5916\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u7121\u52b9\u5316\u3059\u308b\u3053\u3068\u3067\u3001GAS\u304b\u3089\u306e\u5b9f\u884c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>REST API\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u8a18\u4e8b\u81ea\u52d5\u6295\u7a3f\u304cGAS\u3059\u308b\u6e96\u5099\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9REST API\u3067\u65b0\u898f\u8a18\u4e8b\u4f5c\u6210\u3059\u308bGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n<p>Google Apps Script(GAS)\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u3092\u5229\u7528\u3059\u308b\u6e96\u5099\u304c\u6574\u3063\u305f\u3068\u3053\u308d\u3067\u3001\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u65b0\u898f\u4f5c\u6210\u3059\u308bGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><code>\/\/\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u3092\u5229\u7528\u3057\u3066\u8a18\u4e8b\u3092\u81ea\u52d5\u6295\u7a3f\u3059\u308b\u95a2\u6570<br \/>\nfunction postArticle() {<br \/>\n\/\/\u81ea\u52d5\u6295\u7a3f\u3057\u305f\u3044\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u30b5\u30a4\u30c8\u306eURL\u3092\u5165\u529b\u3059\u308b<br \/>\nlet siteURL = PropertiesService.getScriptProperties().getProperty('URL');<br \/>\n\/\/\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u8a2d\u5b9a\u3059\u308b<br \/>\nlet userID = PropertiesService.getScriptProperties().getProperty('USER_ID');<br \/>\n\/\/\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u8a2d\u5b9a\u3059\u308b<br \/>\nlet pass = PropertiesService.getScriptProperties().getProperty('PASSWORD');<br \/>\n\/\/\u81ea\u52d5\u6295\u7a3f\u3059\u308b\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u8a2d\u5b9a\u3059\u308b<br \/>\nlet title = '\u81ea\u52d5\u6295\u7a3f\u30c6\u30b9\u30c8';<br \/>\n\/\/\u81ea\u52d5\u6295\u7a3f\u3059\u308b\u8a18\u4e8b\u672c\u6587\u3092\u8a2d\u5b9a\u3059\u308b<br \/>\nlet content = '\u3053\u308c\u306f\u81ea\u52d5\u6295\u7a3f\u3067\u3059\u3002';<br \/>\n\/\/\u81ea\u52d5\u6295\u7a3f\u7528API\u306eURL\u3092\u30b5\u30a4\u30c8URL\u304b\u3089\u751f\u6210\u3059\u308b<br \/>\nlet apiURL = siteURL + 'wp-json\/wp\/v2\/posts';<br \/>\n\/\/API\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306b\u30d8\u30c3\u30c0\u30fc\u60c5\u5831\u3067\u5fc5\u8981\u306a\u8a8d\u8a3c\u60c5\u5831\u3092\u8a2d\u5b9a\u3059\u308b<br \/>\nlet headers = {<br \/>\n'Content-Type': 'application\/json',<br \/>\n'Authorization': 'Basic ' + Utilities.base64Encode(userID + \":\" + pass)<br \/>\n};<br \/>\n\/\/\u8a18\u4e8b\u6295\u7a3f\u306e\u8a73\u7d30\u60c5\u5831\u3092\u8a18\u9332\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8a2d\u5b9a\u3059\u308b<br \/>\nlet arguments = {<br \/>\n'title': title,<br \/>\n'content': content,<br \/>\n'status': 'publish',<br \/>\n'comment_status': 'closed'<br \/>\n};<br \/>\n\/\/HTTP\u901a\u4fe1\u3067POST\u3059\u308b\u305f\u3081\u3001\u8a18\u4e8b\u6295\u7a3f\u60c5\u5831\u3092json\u306b\u3057\u3066\u30aa\u30d7\u30b7\u30e7\u30f3\u60c5\u5831\u3092\u8a2d\u5b9a\u3059\u308b<br \/>\nlet options = {<br \/>\n'method': 'POST',<br \/>\n'muteHttpExceptions': true,<br \/>\n'headers': headers,<br \/>\n'payload': JSON.stringify(arguments)<br \/>\n};<br \/>\n\/\/URL\u30d5\u30a7\u30c3\u30c1\u3067API\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u8a18\u4e8b\u6295\u7a3f\u3092\u884c\u3046<br \/>\nlet response = UrlFetchApp.fetch(apiURL, options);<br \/>\n\/\/\u5fdc\u7b54\u7d50\u679c\u3092JSON\u5316\u3057\u3066\u4fdd\u5b58\u3057\u3001\u30ed\u30b0\u51fa\u529b<br \/>\nlet responseJson = JSON.parse(response.getContentText());<br \/>\nconsole.log(responseJson);<br \/>\n}<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2527\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_014.jpg\" alt=\"\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3001Google Apps Script(GAS)\u3067\u8a18\u4e8b\u3092\u65b0\u898f\u4f5c\u6210\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" width=\"1200\" height=\"636\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_014.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_014-300x159.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_014-768x407.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_014-1024x543.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_014-530x281.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_014-565x299.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_014-710x376.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_014-725x384.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>\u4eca\u56de\u306eGAS\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u4ee5\u4e0b\u306e3\u3064\u3092\u8a2d\u5b9a\u3057\u3066\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eURL(https:\/\/\u25cb\u25cb\u25cb.com)<\/li>\n<li>Application Passwords\u3067\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u30fc<\/li>\n<li>Application Passwords\u3067\u751f\u6210\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9<\/li>\n<\/ol>\n<p>GAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306eGUI\u8a2d\u5b9a\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u5b9f\u884c\u3057\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><code>function setVal(){<br \/>\n\/\/\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30ad\u30fc\u3068\u5024\u3092\u683c\u7d0d\u3059\u308b<br \/>\nPropertiesService.getScriptProperties().setProperty(\"URL\", \"https:\/\/\u25cb\u25cb\u25cb\u25cb.com\");<br \/>\nPropertiesService.getScriptProperties().setProperty(\"USER_ID\", \"yamamoto\");<br \/>\nPropertiesService.getScriptProperties().setProperty(\"PASSWORD\", \"***************\");<br \/>\n}<\/code><\/p>\n<p>\u203b\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8a2d\u5b9a\u8a73\u7d30\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"6uF40BTFUR\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=2365\">GAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u30b3\u30fc\u30c9\u3067\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5(setProperty\u30e1\u30bd\u30c3\u30c9)<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u30b3\u30fc\u30c9\u3067\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5(setProperty\u30e1\u30bd\u30c3\u30c9)&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=2365&#038;embed=true#?secret=7jKw2RDRyx#?secret=6uF40BTFUR\" data-secret=\"6uF40BTFUR\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u5f8c\u3001\u5148\u7a0b\u306e\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u8a18\u4e8b\u81ea\u52d5\u6295\u7a3f\u306eGAS\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30d6\u30ed\u30b0\u306b\u8a18\u4e8b\u304c\u65b0\u898f\u4f5c\u6210\u3055\u308c\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2530\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_016.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u8a18\u4e8b\u3092\u81ea\u52d5\u6295\u7a3f\u3057\u305f\u7d50\u679c\u3001\u30d6\u30ed\u30b0\u8a18\u4e8b\u304c\u65b0\u898f\u4f5c\u6210\u3055\u308c\u305f\" width=\"800\" height=\"406\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_016.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_016-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_016-768x390.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_016-530x269.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_016-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_016-710x360.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/01\/20210112_auto_016-725x368.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u8a18\u4e8b\u3092GAS\u3067\u81ea\u52d5\u6295\u7a3f\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>GAS\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u3084\u8a18\u4e8b\u672c\u6587\u306e\u5185\u5bb9\u3092\u5de5\u592b\u3059\u308b\u3053\u3068\u3067\u3001\u3055\u3089\u306b\u60c5\u5831\u91cf\u3092\u9ad8\u3081\u305f\u6709\u76ca\u306a\u60c5\u5831\u767a\u4fe1\u304c\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u3092\u4f7f\u3063\u3066\u3001\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u81ea\u52d5\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u3059\u308b\u74b0\u5883\u8a2d\u5b9a\u304b\u3089\u3001\u30cf\u30de\u308a\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d39\u4ecb\u3057\u305fGAS\u306e\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u81ea\u52d5\u6295\u7a3f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6539\u826f\u3059\u308b\u3053\u3068\u3067\u3001\u6709\u76ca\u306a\u60c5\u5831\u3092\u63b2\u8f09\u3057\u305f\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e\u65b0\u898f\u4f5c\u6210\u304c\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>GAS\u3067\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3059\u308b\u51e6\u7406\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u4eba\u624b\u306e\u30b3\u30b9\u30c8\uff10\u3067\u30d6\u30ed\u30b0\u904b\u55b6\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305c\u3072GAS\u3092\u4f7f\u3063\u3066\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306b\u3088\u308b\u30d6\u30ed\u30b0\u904b\u55b6\u3082\u81ea\u52d5\u5316\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u3067\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eAPI\u3092\u5229\u7528\u3057\u305f\u8a18\u4e8b\u306e\u81ea\u52d5\u6295\u7a3f\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 WordPress\u306eREST API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u8a18\u4e8b\u6295\u7a3f\u3059\u308bGAS\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u3001\u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u3084\u30a2\u30af\u30bb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2529,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[14,546,537,538],"class_list":["post-2475","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-gas","tag-gas","tag-rest-api","tag-wordpress","tag-538"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2475"}],"version-history":[{"count":5,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2475\/revisions"}],"predecessor-version":[{"id":2531,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2475\/revisions\/2531"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/2529"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}