{"id":4531,"date":"2021-10-28T22:29:44","date_gmt":"2021-10-28T13:29:44","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=4531"},"modified":"2021-10-28T22:29:45","modified_gmt":"2021-10-28T13:29:45","slug":"post-4531","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=4531","title":{"rendered":"goo\u5f62\u614b\u7d20\u89e3\u6790API\u3092Google Apps Script(GAS)\u3067\u5229\u7528\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u306e\u4e2d\u3067\u6700\u3082\u57fa\u672c\u7684\u306a\u51e6\u7406\u3068\u306a\u308b\u306e\u304c\u3001\u6587\u7ae0\u3092\u5358\u8a9e\u30ec\u30d9\u30eb\u306b\u533a\u5207\u308b\u5f62\u614b\u7d20\u89e3\u6790\u3067\u3059\u3002<\/p>\n\n\n\n<p>Google Apps Script(GAS)\u3067\u5f62\u614b\u7d20\u89e3\u6790\u3059\u308b\u3084\u308a\u65b9\u3068\u3057\u3066\u3001goo\u5f62\u614b\u7d20\u89e3\u6790API\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u3059\u308b\u4e0a\u3067\u57fa\u672c\u306f\u5f62\u614b\u7d20\u89e3\u6790<\/h2>\n\n\n\n<p>\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u306a\u3069\u306eAI\u6280\u8853\u306e\u767a\u5c55\u3067\u3001\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u6a5f\u4f1a\u304c\u5897\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u306e\u4e2d\u3067\u3001\u57fa\u672c\u7684\u306a\u51e6\u7406\u3068\u306a\u308b\u304c\u300c\u5f62\u614b\u7d20\u89e3\u6790\u300d\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5f62\u614b\u7d20\u89e3\u6790\u306f\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3057\u3001\u5358\u8a9e\u30ec\u30d9\u30eb\u3067\u533a\u5207\u3063\u305f\u7d50\u679c\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5358\u8a9e\u30ec\u30d9\u30eb\u306b\u7d30\u304b\u304f\u5206\u89e3\u3059\u308b\u3053\u3068\u3067\u3001\u6587\u7ae0\u306e\u69cb\u9020\u3092\u628a\u63e1\u3057\u3001\u30c6\u30ad\u30b9\u30c8\u30de\u30a4\u30cb\u30f3\u30b0\u3068\u547c\u3070\u308c\u308b\u30c6\u30ad\u30b9\u30c8\u306e\u5206\u6790\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u3067\u5f62\u614b\u7d20\u89e3\u6790\u306fAPI\u5229\u7528\u304c\u7c21\u5358<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u3067\u3082\u3001\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u306e\u57fa\u672c\u3068\u306a\u308b\u5f62\u614b\u7d20\u89e3\u6790\u3092GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u6e96\u5099\u3059\u308b\u3068\u3001\u4e00\u5b9a\u306e\u30b3\u30fc\u30c9\u6570\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u3001GAS\u306f\u7121\u6599\u5229\u7528\u306e\u5834\u5408\u306b\u306f\u30016\u5206\u3068\u3044\u3046\u5b9f\u884c\u6642\u9593\u5236\u9650\u304c\u3042\u308a\u3001\u51e6\u7406\u901f\u5ea6\u3082\u305d\u308c\u307b\u3069\u901f\u304f\u306a\u3044\u3053\u3068\u304b\u3089\u3001\u5f62\u614b\u7d20\u89e3\u6790\u306e\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u3068\u3001\u5b9f\u884c\u6642\u9593\u30aa\u30fc\u30d0\u30fc\u306e\u6050\u308c\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u3088\u308a\u3082\u3001GAS\u3067\u5f62\u614b\u7d20\u89e3\u6790\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u5f62\u614b\u7d20\u89e3\u6790\u306eAPI\u3092\u5229\u7528\u3059\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<p>AI\u30d6\u30fc\u30e0\u306e\u304a\u304b\u3052\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u9001\u308b\u3068\u5f62\u614b\u7d20\u89e3\u6790\u3057\u305f\u7d50\u679c\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u308bAPI\u304c\u591a\u6570\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u308f\u3056\u308f\u3056GAS\u3067\u5f62\u614b\u7d20\u89e3\u6790\u306e\u30b3\u30fc\u30c9\u3092\u6e96\u5099\u3059\u308b\u306e\u306f\u3001\u8eca\u8f2a\u306e\u518d\u767a\u660e\u306b\u306a\u308b\u305f\u3081\u3001API\u306a\u308910\u6570\u884c\u3067\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">goo\u30e9\u30dc\u3067\u5f62\u614b\u7d20\u89e3\u6790API\u306f\u7121\u6599\u5229\u7528\u53ef\u80fd<\/h2>\n\n\n\n<p>\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u308b\u5f62\u614b\u7d20\u89e3\u6790\u306eAPI\u3067\u304a\u3059\u3059\u3081\u306f\u300cgoo\u5f62\u614b\u7d20\u89e3\u6790API\u300d\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"609\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_001.jpg\" alt=\"goo\u5f62\u614b\u7d20\u89e3\u6790API\u306e\u8aac\u660e\u30da\u30fc\u30b8\uff01Google Apps Script(GAS)\u3067\u5f62\u614b\u7d20\u89e3\u6790\u304c\u53ef\u80fd\u306b\" class=\"wp-image-4533\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_001.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_001-300x152.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_001-768x390.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_001-1024x520.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_001-530x269.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_001-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_001-710x360.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_001-725x368.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>goo\u30cb\u30e5\u30fc\u30b9\u3067\u304a\u306a\u3058\u307f\u306eNTT\u30ec\u30be\u30ca\u30f3\u30c8\u304c\u3001AI\u7814\u7a76\u6210\u679c\u3092\u516c\u958b\u3059\u308bgoo\u30e9\u30dc\u3067\u516c\u958b\u3057\u3066\u3044\u308bAPI\u306e1\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<p>goo\u5f62\u614b\u7d20\u89e3\u6790API\u3092\u4f7f\u3048\u3070\u3001Google Apps Script\u3067\u5f62\u614b\u7d20\u89e3\u6790\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u6e96\u5099\u3057\u306a\u304f\u3066\u3082\u3001\u65e5\u672c\u8a9e\u6587\u7ae0\u3092API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u3060\u3051\u3067\u5358\u8a9e\u5358\u4f4d\u306b\u5206\u89e3\u3057\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">goo\u5f62\u614b\u7d20\u89e3\u6790API\u306e\u5229\u7528\u767b\u9332\u624b\u9806<\/h2>\n\n\n\n<p>goo\u5f62\u614b\u7d20\u89e3\u6790API\u3092\u5229\u7528\u3059\u308b\u306b\u306f\u5f53\u305f\u3063\u3066\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ID\u3092\u53d6\u5f97\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5f62\u614b\u7d20\u89e3\u6790API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u969b\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ID\u306b\u3088\u3063\u3066\u8a8d\u8a3c\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306egoo\u30e9\u30dc\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ID\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u5229\u7528\u767b\u9332\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\uff11\uff0e<a class=\"external\" href=\"https:\/\/labs.goo.ne.jp\/jp\/apiregister\/\" target=\"_blank\" rel=\"noopener noreferrer external\">goo\u30e9\u30dc\u306eAPI\u5229\u7528\u767b\u9332\u30da\u30fc\u30b8<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u5229\u7528\u898f\u7d04\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"465\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_001.jpg\" alt=\"goo\u30e9\u30dc\u306eAPI\u5229\u7528\u767b\u9332\u30da\u30fc\u30b8\u3067\u5229\u7528\u898f\u7d04\u306b\u540c\u610f\" class=\"wp-image-4521\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_001.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_001-300x174.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_001-768x446.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_001-530x308.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_001-565x328.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_001-710x413.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_001-725x421.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff12\uff0egoo\u30e9\u30dc\u306eAPI\u5229\u7528\u898f\u7d04\u3092\u8aad\u4e86\u3057\u305f\u4e0a\u3067\u3001\u300c\u5229\u7528\u898f\u7d04\u306b\u540c\u610f\u3057\u3066GitHub\u3067\u767b\u9332\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"399\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_002.jpg\" alt=\"\u5229\u7528\u898f\u7d04\u306b\u540c\u610f\u3057\u305f\u4e0a\u3067\u3001Github\u3067\u767b\u9332\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\" class=\"wp-image-4522\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_002-300x150.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_002-768x383.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_002-530x264.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_002-565x282.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_002-710x354.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_002-725x362.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff13\uff0eGitHub\u306e\u30da\u30fc\u30b8\u306b\u9077\u79fb\u3057\u3001\u8a8d\u8a3c\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u300cAuthorize nttresonant\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"467\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_004.jpg\" alt=\"GitHub\u306e\u30da\u30fc\u30b8\u3067goo\u30e9\u30dc\u306eAPI\u306e\u8a8d\u8a3c\u3092\u8a31\u53ef\" class=\"wp-image-4524\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_004-300x175.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_004-768x448.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_004-530x309.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_004-565x330.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_004-710x414.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_004-725x423.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\uff14\uff0egoo\u30e9\u30dc\u306e\u30da\u30fc\u30b8\u306b\u623b\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ID\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u8a18\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"417\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_003.jpg\" alt=\"goo\u30e9\u30dc\u306eAPI\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ID(API\u30ad\u30fc)\u304c\u767a\u884c\u3055\u308c\u308b\u306e\u3067\u8a18\u9332\" class=\"wp-image-4523\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_003.jpg 600w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_003-300x209.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_003-530x368.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211026_auto_003-565x393.jpg 565w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0a\u3067\u3001goo\u30e9\u30dc\u306eAPI\u5229\u7528\u767b\u9332\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u53d6\u5f97\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ID\u3092API\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u30bb\u30c3\u30c8\u3059\u308b\u3053\u3068\u3067\u3001goo\u5f62\u614b\u7d20\u89e3\u6790API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">goo\u5f62\u614b\u7d20\u89e3\u6790API\u3092\u5b9f\u884c\u3059\u308bGAS\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<p>\u5b9f\u969b\u306bgoo\u5f62\u614b\u7d20\u89e3\u6790API\u3092Google Apps Script(GAS)\u3067\u5b9f\u884c\u3057\u3066\u3001\u5358\u8a9e\u5206\u6790\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5f62\u614b\u7d20\u89e3\u6790\u3057\u305f\u3044\u6587\u7ae0\u3092goo\u5f62\u614b\u7d20\u89e3\u6790\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3001\u5358\u8a9e\u30ec\u30d9\u30eb\u306b\u5206\u5272\u3057\u305f\u7d50\u679c\u3092\u51fa\u529b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function textAnalysis() {\n  \/\/\u5f62\u614b\u7d20\u89e3\u6790\u3059\u308b\u6587\u7ae0\u3092\u5909\u6570\u306b\u683c\u7d0d\n  let sentence = \"\u56fd\u5883\u306e\u9577\u3044\u30c8\u30f3\u30cd\u30eb\u3092\u629c\u3051\u308b\u3068\u96ea\u56fd\u3067\u3042\u3063\u305f\u3002\";\n  \/\/goo\u5f62\u614b\u7d20\u89e3\u6790API\u306e\u30ea\u30af\u30a8\u30b9\u30c8URL\u3068appId\u3092\u8a2d\u5b9a(***\u90e8\u5206\u306bID\u30bb\u30c3\u30c8)\n  let apiUrl = \"https:\/\/labs.goo.ne.jp\/api\/morph\";\n  let appId = \"***************************************************************\";\n  \/\/goo\u5f62\u614b\u7d20\u89e3\u6790API\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u30bb\u30c3\u30c8\u3057\u3001HTTP POST\u3059\u308b\u305f\u3081\u306eoptions\u3092\u8a2d\u5b9a\n  let payload = {\n    'app_id' : appId,\n    'sentence' : sentence\n  };\n  let options = {\n    'method' : 'post',\n    'payload' : payload\n  };\n  \/\/goo\u5f62\u614b\u7d20\u89e3\u6790API\u306bHTTP POST\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001JSON\u306e\u7d50\u679c\u3092\u30d1\u30fc\u30b9\n  let response = UrlFetchApp.fetch(apiUrl,options).getContentText();\n  let json = JSON.parse(response);\n  \/\/goo\u5f62\u614b\u7d20\u89e3\u6790API\u3067\u51e6\u7406\u3057\u305f\u7d50\u679c\u3092\u30ed\u30b0\u51fa\u529b\u3059\u308b\n  console.log(json['word_list']);\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"610\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_002.jpg\" alt=\"Google Apps Script(GAS)\u3067goo\u306e\u5f62\u614b\u7d20\u89e3\u6790API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3001\u5206\u6790\u7d50\u679c\u3092\u30ed\u30b0\u51fa\u529b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-4534\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_002.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_002-300x153.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_002-768x390.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_002-1024x521.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_002-530x269.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_002-565x287.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_002-710x361.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_002-725x369.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>API\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306fHTTP POST\u3067\u884c\u3044\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u5fc5\u9808\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3ID\u3068\u5206\u6790\u5bfe\u8c61\u306e\u6587\u7ae0\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>goo\u5f62\u614b\u7d20\u89e3\u6790API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308bGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001\u5b9f\u884c\u30ed\u30b0\u306bAPI\u306e\u8fd4\u5374\u30c6\u30ad\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"462\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_003.jpg\" alt=\"goo\u5f62\u614b\u7d20\u89e3\u6790API\u3092Google Apps Script(GAS)\u3067\u5b9f\u884c\u3057\u3066\u30ed\u30b0\u51fa\u529b\u3057\u305f\u7d50\u679c\" class=\"wp-image-4535\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_003.jpg 600w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_003-300x231.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_003-530x408.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_003-565x435.jpg 565w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u65e5\u672c\u8a9e\u306e\u6587\u7ae0\u3092\u54c1\u8a5e\u30fb\u52a9\u8a5e\u306e\u30ec\u30d9\u30eb\u306b\u5206\u5272\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u53e3\u30b3\u30df\u3084\u30ec\u30d3\u30e5\u30fc\u306a\u3069\u306e\u6587\u7ae0\u3092\u5f62\u614b\u7d20\u89e3\u6790\u3057\u3001\u3069\u3046\u3044\u3063\u305f\u30ef\u30fc\u30c9\u304c\u983b\u51fa\u3057\u3066\u3044\u308b\u304b\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u306e\u5185\u5bb9\u3092\u5206\u6790\u3059\u308b\u3068\u3044\u3063\u305f\u5fdc\u7528\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d1\u30e9\u30e1\u30fc\u30bf\u5909\u66f4\u3067\u540d\u8a5e\u306e\u307f\u62bd\u51fa\u3082\u53ef\u80fd<\/h2>\n\n\n\n<p>\u5148\u7a0b\u306fgoo\u5f62\u614b\u7d20\u89e3\u6790API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u305f\u6587\u7ae0\u3092\u3059\u3079\u3066\u306e\u54c1\u8a5e\u3067\u5206\u5272\u3057\u307e\u3057\u305f\u304c\u3001\u7279\u5b9a\u306e\u54c1\u8a5e\u306e\u307f\u306b\u7d5e\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001goo\u5f62\u614b\u7d20\u89e3\u6790API\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u3066\u3001\u540d\u8a5e\u3060\u3051\u62bd\u51fa\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function textAnalysisV2() {\n  \/\/\u5f62\u614b\u7d20\u89e3\u6790\u3059\u308b\u6587\u7ae0\u3092\u5909\u6570\u306b\u683c\u7d0d\n  let sentence = \"\u56fd\u5883\u306e\u9577\u3044\u30c8\u30f3\u30cd\u30eb\u3092\u629c\u3051\u308b\u3068\u96ea\u56fd\u3067\u3042\u3063\u305f\u3002\";\n  \/\/goo\u5f62\u614b\u7d20\u89e3\u6790API\u306e\u30ea\u30af\u30a8\u30b9\u30c8URL\u3068appId\u3092\u8a2d\u5b9a(***\u90e8\u5206\u306bID\u30bb\u30c3\u30c8)\n  let apiUrl = \"https:\/\/labs.goo.ne.jp\/api\/morph\";\n  let appId = \"***************************************************************\";\n  \/\/goo\u5f62\u614b\u7d20\u89e3\u6790API\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u30bb\u30c3\u30c8\u3057\u3001HTTP POST\u3059\u308b\u305f\u3081\u306eoptions\u3092\u8a2d\u5b9a\n  let payload = {\n    'app_id' : appId,\n    'sentence' : sentence,\n    'info_filter' : \"form|pos\",\n    'pos_filter' : \"\u540d\u8a5e\"\n  };\n  let options = {\n    'method' : 'post',\n    'payload' : payload\n  };\n  \/\/goo\u5f62\u614b\u7d20\u89e3\u6790API\u306bHTTP POST\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001JSON\u306e\u7d50\u679c\u3092\u30d1\u30fc\u30b9\n  let response = UrlFetchApp.fetch(apiUrl,options).getContentText();\n  let json = JSON.parse(response);\n  \/\/goo\u5f62\u614b\u7d20\u89e3\u6790API\u3067\u51e6\u7406\u3057\u305f\u7d50\u679c\u3092\u30ed\u30b0\u51fa\u529b\u3059\u308b\n  console.log(json['word_list']);\n}<\/code><\/pre>\n\n\n\n<p>\u524d\u8ff0\u306eGoogle Apps Script\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3068\u6bd4\u8f03\u3059\u308b\u3068\u3001API\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u9805\u76ee\u304c\u5897\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>GAS\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6587\u7ae0\u3092\u5206\u89e3\u3057\u305f\u4e2d\u3067\u540d\u8a5e\u306e\u307f\u3092\u62bd\u51fa\u3057\u3066\u51fa\u529b\u7d50\u679c\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"266\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_004.jpg\" alt=\"Google Apps Script(GAS)\u3067goo\u5f62\u614b\u7d20\u89e3\u6790API\u3092\u5b9f\u884c\u3057\u3066\u3001\u540d\u8a5e\u306e\u307f\u62bd\u51fa\" class=\"wp-image-4536\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_004-300x100.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_004-768x255.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_004-530x176.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_004-565x188.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_004-710x236.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/10\/20211027_auto_004-725x241.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Twitter\u306a\u3069\u3067\u7279\u5b9a\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u691c\u7d22\u3057\u305f\u30c4\u30a4\u30fc\u30c8\u304b\u3089\u3001\u3069\u3046\u3044\u3063\u305f\u540d\u8a5e\u304c\u4e00\u7dd2\u306b\u6295\u7a3f\u3055\u308c\u3066\u3044\u308b\u304b\u30c4\u30a4\u30fc\u30c8\u5206\u6790\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u3067goo\u5f62\u614b\u7d20\u89e3\u6790API\u3092\u5b9f\u884c\u3057\u3001\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u5358\u8a9e\u5206\u5272\u3092\u884c\u3046\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5f62\u614b\u7d20\u89e3\u6790\u306f\u81a8\u5927\u306a\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3059\u308b\u30b3\u30fc\u30d1\u30b9\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001GAS\u3067\u5b9f\u88c5\u3059\u308b\u306e\u306f\u5927\u5909\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u5f62\u614b\u7d20\u89e3\u6790API\u3092\u5229\u7528\u3059\u308c\u3070\u3001API\u306b\u5206\u6790\u3057\u305f\u3044\u6587\u7ae0\u3092\u9001\u308b\u3060\u3051\u3067\u5f62\u614b\u7d20\u89e3\u6790\u3057\u305f\u7d50\u679c\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u4e2d\u3067\u3082goo\u5f62\u614b\u7d20\u89e3\u6790API\u306fGitHub\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u767b\u9332\u3057\u3066\u3001\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u308b\u306e\u3067\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002<\/p>\n\n\n\n<p>GAS\u3067\u5f62\u614b\u7d20\u89e3\u6790\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001goo\u5f62\u614b\u7d20\u89e3\u6790API\u3092\u305c\u3072\u6d3b\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u306e\u4e2d\u3067\u6700\u3082\u57fa\u672c\u7684\u306a\u51e6\u7406\u3068\u306a\u308b\u306e\u304c\u3001\u6587\u7ae0\u3092\u5358\u8a9e\u30ec\u30d9\u30eb\u306b\u533a\u5207\u308b\u5f62\u614b\u7d20\u89e3\u6790\u3067\u3059\u3002 Google Apps Script(GAS)\u3067\u5f62\u614b\u7d20\u89e3\u6790\u3059\u308b\u3084\u308a\u65b9\u3068\u3057\u3066\u3001goo\u5f62\u614b\u7d20\u89e3\u6790API\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u81ea\u7136 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4533,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[14,779,778],"class_list":["post-4531","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-gas","tag-gas","tag-gooapi","tag-778"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4531","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=4531"}],"version-history":[{"count":5,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4531\/revisions"}],"predecessor-version":[{"id":4540,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4531\/revisions\/4540"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/4533"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}