{"id":1956,"date":"2021-02-14T22:04:52","date_gmt":"2021-02-14T13:04:52","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=1956"},"modified":"2021-02-14T22:02:39","modified_gmt":"2021-02-14T13:02:39","slug":"post-1956","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=1956","title":{"rendered":"\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u300cApplication Passwords\u300d\u3067REST API\u306e403\u30fb401\u30a8\u30e9\u30fc\u539f\u56e0\u3068\u5bfe\u51e6\u65b9\u6cd5"},"content":{"rendered":"<p>WordPress\u3067\u300cApplication Passwords\u300d\u3092\u4f7f\u3063\u3066RESTAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u81ea\u52d5\u6295\u7a3f\u306b\u53d6\u308a\u7d44\u3093\u3060\u3068\u3053\u308d\u3001403\u306eForbidden\u30a8\u30e9\u30fc\u3084401\u306e\u8a8d\u8a3c\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u300cApplication Passwords\u300d\u306b\u3088\u308b\u81ea\u52d5\u6295\u7a3f\u306e\u6ce8\u610f\u70b9\u3068\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>REST API\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3092\u64cd\u4f5c<\/h2>\n<p>\u30d6\u30ed\u30b0CMS\u3067\u6700\u3082\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306b\u306f\u3001REST API\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u901a\u5e38\u306e\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u64cd\u4f5c\u306f\u30d6\u30e9\u30a6\u30b6\u3067\u7ba1\u7406\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u8a18\u4e8b\u3092\u6295\u7a3f\u3057\u305f\u308a\u3001\u30a2\u30d7\u30ea\u3067\u8a18\u4e8b\u3092\u66f8\u304f\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001REST API\u3092\u5229\u7528\u3059\u308c\u3070\u3001python\u3084javascript\u3068\u3044\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u524d\u3001Google Apps Script(GAS)\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u3092\u4f7f\u7528\u3057\u3066\u8a18\u4e8b\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"aaXV5ecBYM\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=2475\">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<\/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\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&#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=2475&#038;embed=true#?secret=XgpxqkrcEq#?secret=aaXV5ecBYM\" data-secret=\"aaXV5ecBYM\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u3092\u4f7f\u3063\u3066\u3001\u5404\u7a2e\u64cd\u4f5c\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5b9f\u884c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>REST API\u5229\u7528\u306f\u300cApplication Passwords\u300d\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u5fc5\u9808<\/h2>\n<p>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3067REST API\u3092\u5229\u7528\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u306f\u4e8b\u524d\u306b\u5fc5\u8981\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u304c\u300cApplication Passwords\u300d\u3068\u3044\u3046\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\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>\u3053\u306eApplication Passwords\u30d7\u30e9\u30b0\u30a4\u30f3\u3067REST API\u5b9f\u884c\u53ef\u80fd\u306a\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<p>REST API\u3067\u306f\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u8272\u3005\u306a\u64cd\u4f5c\u304c\u3067\u304d\u308b\u305f\u3081\u3001API\u30ea\u30af\u30a8\u30b9\u30c8\u53ef\u80fd\u306a\u30e6\u30fc\u30b6\u30fc\u3092\u5236\u9650\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30ea\u30b9\u30af\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3067REST API\u3092\u5229\u7528\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u306f\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u65b0\u898f\u8ffd\u52a0\u3067Application Passwords \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001REST API\u3092\u8a31\u53ef\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h2>Application Passwords\u3067403\u3084401\u30a8\u30e9\u30fc\u304c\u767a\u751f<\/h2>\n<p>\u305f\u3060\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eApplication Passwords\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u3082\u5b8c\u4e86\u3057\u305f\u3051\u3069\u3001Python\u3084Javascript\u306a\u3069\u3067REST API\u3092\u5b9f\u884c\u3057\u305f\u3051\u308c\u3069\u3082\u3001403\u306e\u30a2\u30af\u30bb\u30b9\u7981\u6b62\u30a8\u30e9\u30fc\u3084401\u306e\u8a8d\u8a3c\u30a8\u30e9\u30fc\u3067API\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5931\u6557\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u306b\u306f\u3044\u304f\u3064\u304b\u5b9f\u884c\u30a8\u30e9\u30fc\u306b\u306a\u308b\u30dd\u30a4\u30f3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u306e\u30a8\u30e9\u30fc\u539f\u56e0\u3068\u5bfe\u5fdc\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2>Application Passwords\u306e\u30a8\u30e9\u30fc\u539f\u56e0\u3068\u5bfe\u51e6\u65b9\u6cd5<\/h2>\n<p>Application Passwords\u30d7\u30e9\u30b0\u30a4\u30f3\u5c0e\u5165\u5f8c\u306b\u3001REST API\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\u3057\u3066\u3057\u307e\u3046\u3088\u304f\u3042\u308b\u539f\u56e0\u306f3\u3064\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e.htaccess\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u8a18\u8ff0\u4e0d\u8db3<\/li>\n<li>Application Password\u767b\u9332\u30e6\u30fc\u30b6\u30fc\u304c\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u30e6\u30fc\u30b6\u30fc\u3068\u4e00\u81f4\u3057\u306a\u3044<\/li>\n<li>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u6d77\u5916\u30b5\u30fc\u30d0\u30fc\u304b\u3089REST API\u5b9f\u884c\u3092\u4e0d\u8a31\u53ef<\/li>\n<\/ol>\n<p>Application Passwords\u306e\u30a8\u30e9\u30fc\u539f\u56e0\u3068\u306a\u308b\u4e3b\u306a3\u3064\u306b\u3064\u3044\u3066\u5bfe\u51e6\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e.htaccess\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u8a18\u8ff0\u4e0d\u8db3<\/h3>\n<p>Application Passwords\u306e\u30a8\u30e9\u30fc\u3067\u6700\u3082\u591a\u3044\u306e\u304c.htaccess\u30d5\u30a1\u30a4\u30eb\u306e\u8a18\u8ff0\u304c\u4e0d\u8db3\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<p>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eApplication Passwords\u306e\u753b\u9762\u3067\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u672c\u4e8b\u8c61\u306b\u8a72\u5f53\u3057\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<blockquote><p>Due to a potential server misconfiguration, it seems that HTTP Basic Authorization may not work for the REST API on this site: Authorization headers are not being sent to WordPress by the web server. You can learn more about this problem, and a possible solution, on our GitHub Wiki.<\/p><\/blockquote>\n<p>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u904b\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30a2\u30af\u30bb\u30b9\u306a\u3069\u306e\u5404\u7a2eWeb\u8a2d\u5b9a\u3092\u884c\u3046.htaccess\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e.htaccess\u306e\u30d5\u30a1\u30a4\u30eb\u306bHTTP\u30a2\u30af\u30bb\u30b9\u306e\u8a8d\u8a3c\u3092\u8a31\u53ef\u3059\u308b\u305f\u3081\u306e\u8a18\u8ff0\u30921\u884c\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><em><strong>RewriteRule .* \u2013 [E=REMOTE_USER:%{HTTP:Authorization}]<\/strong><\/em><\/p>\n<p>\u203bApache\u306eWeb\u30b5\u30fc\u30d0\u30fc\u306e\u5834\u5408\u306e\u307f<\/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>.htaccess\u306b\u4e0a\u8a18\u306e\u8a18\u8ff0\u304c\u306a\u3044\u72b6\u614b\u3060\u3068\u3001Application Passwords\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u753b\u9762\u3067\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u306e.htaccess\u306e\u8a2d\u5b9a\u4e0d\u8db3\u306a\u306e\u3067\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u8ffd\u8a18\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>.htaccess\u306e\u4fee\u6b63\u3057\u3066\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eApplication Passwords\u306e\u753b\u9762\u3067\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u3063\u305f\u3089\u3001\u5bfe\u5fdc\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h3>Application Passwords\u767b\u9332\u30e6\u30fc\u30b6\u30fc\u304c\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u7ba1\u7406\u30e6\u30fc\u30b6\u30fc\u3068\u4e00\u81f4\u3057\u306a\u3044<\/h3>\n<p>Application Passwords\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u306f\u3001REST API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3057\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3067\u306f\u4efb\u610f\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u304c\u5165\u529b\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u540c\u4e00\u306b\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u540c\u4e00\u540d\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u306a\u3051\u308c\u3070\u3001REST API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u305f\u969b\u306b\u8a8d\u8a3c\u30a8\u30e9\u30fc\u304c\u751f\u3058\u3066\u5931\u6557\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u3068\u3001401\u306e\u8a8d\u8a3c\u30a8\u30e9\u30fc\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306e\u767b\u9332\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3001\u4e00\u81f4\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u540c\u3058\u30e6\u30fc\u30b6\u30fc\u540d\u3067\u518d\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u6d77\u5916\u30b5\u30fc\u30d0\u30fc\u304b\u3089REST API\u5b9f\u884c\u3092\u4e0d\u8a31\u53ef<\/h3>\n<p>Application Passwords\u306e\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u3082.htaccess\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u3082\u554f\u984c\u306a\u3044\u306e\u306b\u3001REST API\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u30a8\u30e9\u30fc\u3059\u308b\u30b1\u30fc\u30b9\u3067\u8003\u3048\u3089\u308c\u308b\u306e\u304c\u3001\u6d77\u5916\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3067\u3059\u3002<\/p>\n<p>\u7279\u306bAWS\u306eLambda\u3084Google\u306eCloud Function\u3001Google Apps Script\u306a\u3069\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30b5\u30fc\u30d3\u30b9\u3067REST API\u3092\u5b9f\u884c\u3059\u308b\u969b\u3001\u5b9f\u884c\u5143\u306f\u6d77\u5916\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u4e0d\u6b63\u306a\u6d77\u5916\u30a2\u30af\u30bb\u30b9\u3092\u9632\u3050\u305f\u3081\u306b\u6d77\u5916\u30c9\u30e1\u30a4\u30f3\u304b\u3089\u306eREST API\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5236\u9650\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001REST API\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5b9f\u884c\u5143\u306e\u74b0\u5883\u304c\u6d77\u5916\u30b5\u30fc\u30d0\u30fc\u3084\u6d77\u5916\u30b5\u30fc\u30d3\u30b9\u306e\u5834\u5408\u306f\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u304c\u539f\u56e0\u3067\u3042\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3068\u304d\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u3068\u3001403\u306e\u30a2\u30af\u30bb\u30b9\u7981\u6b62\u30a8\u30e9\u30fc\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>Xserver\u3084\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u306e\u4e00\u822c\u7684\u306a\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u3067\u306fWordpress\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u8a2d\u5b9a\u3068\u3057\u3066\u3001\u6d77\u5916IP\u304b\u3089\u30a2\u30af\u30bb\u30b9\u5236\u9650\u306e\u9805\u76ee\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3092\u7121\u52b9\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\u25cbXserver\u306eWordpress\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a<\/strong><\/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><strong>\u25cb\u30b9\u30bf\u30fc\u30b5\u30fc\u30d0\u30fc\u306eWordpress\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a<\/strong><\/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>\u4ee5\u4e0a\u306e3\u3064\u304cApplication Passwords\u306b\u95a2\u308f\u308b\u90e8\u5206\u3067\u306eREST API\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4e3b\u306a\u30a8\u30e9\u30fc\u539f\u56e0\u3067\u3059\u3002<\/p>\n<p>\u4ed6\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u8aa4\u3063\u3066\u3044\u308b\u306a\u3069\u306e\u30b1\u30a2\u30ec\u30b9\u30df\u30b9\u3082\u3042\u308a\u307e\u3059\u304c\u3001Application Password\u304c\u3046\u307e\u304f\u884c\u304b\u306a\u3044\u5834\u5408\u306f\u4e0a\u8a183\u3064\u306b\u8a72\u5f53\u3057\u306a\u3044\u304b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u3001\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u306b\u5fc5\u8981\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u300cApplication Passwords\u300d\u3067\u3001REST API\u30ea\u30af\u30a8\u30b9\u30c8\u304c401\u3084403\u30a8\u30e9\u30fc\u3092\u5f15\u304d\u8d77\u3053\u3059\u539f\u56e0\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4e3b\u306bApplication Passwords\u306e\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u3084.htaccess\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u6d77\u5916IP\u5236\u9650\u306e3\u3064\u304c\u30a8\u30e9\u30fc\u539f\u56e0\u3067\u3042\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>Application Passwords\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u3001\u3046\u307e\u304f\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u306eREST API\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u4e0a\u8a18\u306e\u30a8\u30e9\u30fc\u539f\u56e0\u306b\u8a72\u5f53\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>3\u3064\u306e\u30a8\u30e9\u30fc\u539f\u56e0\u306e\u3046\u3061\u8907\u6570\u304c\u8a72\u5f53\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3082\u3042\u308b\u306e\u3067\u30013\u3064\u3068\u3082\u554f\u984c\u306a\u3044\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304a\u304f\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u3067\u300cApplication Passwords\u300d\u3092\u4f7f\u3063\u3066RESTAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u81ea\u52d5\u6295\u7a3f\u306b\u53d6\u308a\u7d44\u3093\u3060\u3068\u3053\u308d\u3001403\u306eForbidden\u30a8\u30e9\u30fc\u3084401\u306e\u8a8d\u8a3c\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u307e\u3057\u305f\u3002 \u305d\u3053\u3067\u3001\u300cAppl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2879,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[577,578,576],"class_list":["post-1956","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","tag-applicationpasswords","tag-578","tag-576"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1956","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=1956"}],"version-history":[{"count":8,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1956\/revisions"}],"predecessor-version":[{"id":2880,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1956\/revisions\/2880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/2879"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}