{"id":41195,"date":"2022-04-21T06:01:12","date_gmt":"2022-04-21T05:01:12","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=41195"},"modified":"2022-04-21T06:01:36","modified_gmt":"2022-04-21T05:01:36","slug":"get-widget","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/api-guide\/get-widget\/?lang=ko","title":{"rendered":"\ub300\uc2dc\ubcf4\ub4dc \uc704\uc82f \ub370\uc774\ud130 \uac00\uc838\uc624\uae30"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>\ubd07\uc5d0 \ucd94\uac00\ub41c \ud2b9\uc815 \ub9de\ucda4\ud615 \ub300\uc2dc\ubcf4\ub4dc\uc5d0\uc11c \uc704\uc82f\uc758 \ub370\uc774\ud130 \uacb0\uacfc\ub97c \uac00\uc838\uc635\ub2c8\ub2e4.<\/p>\n<p class=\"note\">\uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 <em>\ub9de\ucda4\ud615 \ubcf4\uace0\uc11c<\/em>\uc758 \ubd07 \ube4c\ub354 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p><b>GET <\/b><code>https:\/\/{{host}}\/api\/public\/bot\/{{BotID}}\/dashboard\/{{dashboardName}}\/widget\/{{widgetName}}?startDate={{startDate}}&amp;endDate={{endDate}}&amp;limit=-1<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i\">\uacbd\ub85c \ub9e4\uac1c \ubcc0\uc218<\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>\ub9e4\uac1c \ubcc0\uc218<\/b><\/th>\n<th><b>\ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d<\/b><\/th>\n<th><b>\uc124\uba85<\/b><\/th>\n<\/tr>\n<tr>\n<td>host<\/td>\n<td>\ud544\uc218<\/td>\n<td>\ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai)<\/td>\n<\/tr>\n<tr>\n<td>BotID<\/td>\n<td>\ud544\uc218<\/td>\n<td>\ubd07 ID \ub610\ub294 \uc2a4\ud2b8\ub9bc ID. \ubd07\uc758 \uc77c\ubc18 \uc124\uc815 \ud398\uc774\uc9c0\uc5d0\uc11c \uc774\ub97c \uc561\uc138\uc2a4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>dashboardName<\/td>\n<td>\ud544\uc218<\/td>\n<td>\ud544\uc694\ud55c \uc704\uc82f\uc774 \ud3ec\ud568\ub41c \ub9de\ucda4\ud615 \ub300\uc2dc\ubcf4\ub4dc\uc758 \uc774\ub984\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>widgetName<\/td>\n<td>\ud544\uc218<\/td>\n<td>\ub370\uc774\ud130\ub97c \uac80\uc0c9\ud574\uc57c \ud558\ub294 \uc704\uc82f\uc758 \uc774\ub984\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>limit<\/td>\n<td>\uc120\ud0dd \uc0ac\ud56d<\/td>\n<td>\uac00\uc838\uc62c \ub808\ucf54\ub4dc \uc218\uc785\ub2c8\ub2e4. \uc801\uc6a9\ud560 \uc218 \uc788\ub294 \ucd5c\ub300 \ud55c\ub3c4\ub294 50\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>startDate<\/td>\n<td>\uc120\ud0dd \uc0ac\ud56d<\/td>\n<td>\ubcc0\uacbd \ub0b4\uc6a9\uc744 \ud655\uc778\ud560 \uc2dc\uc791 \ub0a0\uc9dc\uc785\ub2c8\ub2e4. \uc9c0\uc815\ub418\uc9c0 \uc54a\uc558\ub2e4\uba74 \ubd07 \uc0dd\uc131 \ub0a0\uc9dc\uac00 \uc790\ub3d9\uc73c\ub85c \uc124\uc815\ub429\ub2c8\ub2e4. ISO \ub0a0\uc9dc \ud615\uc2dd\uc73c\ub85c \ub0a0\uc9dc\ub97c \uc785\ub825\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 1998\ub144 3\uc6d4 30\uc77c\uc740 1998-03-30\uc774 \ub420 \uac83\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<tr>\n<td>endDate<\/td>\n<td>\uc120\ud0dd \uc0ac\ud56d<\/td>\n<td>\ubcc0\uacbd \ub0b4\uc6a9\uc744 \ubcf4\uace0\uc790 \ud558\ub294 \uc885\ub8cc \ub0a0\uc9dc\uc785\ub2c8\ub2e4. ISO \ub0a0\uc9dc \ud615\uc2dd\uc73c\ub85c \ub0a0\uc9dc\ub97c \uc785\ub825\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 1998\ub144 3\uc6d4 30\uc77c\uc740 1998-03-30\uc774 \ub420 \uac83\uc785\ub2c8\ub2e4.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-2\">\uad8c\ud55c \ubd80\uc5ec<\/span><\/h3>\n<p>\ub2e4\uc74c \uad6c\ubb38\uc744 \ud3ec\ud568\ud55c \ud5e4\ub354\uc5d0 JWT\ub97c \ud3ec\ud568\ud55c API\ub97c \ud638\ucd9c\ud569\ub2c8\ub2e4. <code>auth: {{JWT}}<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-3\">\ucf58\ud150\uce20 \uc720\ud615 \uc751\ub2f5<\/span><\/h3>\n<p><code>application\/json<\/code><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-4\">\uc0d8\ud50c \uc694\uccad<\/span><\/h3>\n<pre>curl -X GET \\\r\n  https:\/\/{{host}}\/api\/public\/bot\/{{bot_id}}\/dashboard\/{{dashboardName}}\/widget\/{{widgetName}}?startDate={{startDate}}&amp;endDate={{endDate}} \\\r\n  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \\\r\n  -H 'content-type: application\/json' \\<\/pre>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"i-5\">\uc0d8\ud50c \uc751\ub2f5<\/span><\/h3>\n<pre>{\r\n    \"_id\": \"wg-xxxx-xxx-xxx-xxx-xxxxx\",\r\n    \"overlay\": [],\r\n    \"name\": \"dasaDSA\",\r\n    \"type\": \"table\",\r\n    \"sqlQuery\": {\r\n        \"dataSet\": \"Analytics\",\r\n        \"select\": \"metricType\",\r\n        \"startDate\": \"2019-08-31T18:30:00.000Z\",\r\n        \"endDate\": \"2019-10-01T18:30:00.000Z\",\r\n        \"botId\": \"st-xxxxx-xxx-xxx-xxx-xxxxx\"\r\n    },\r\n    \"dimensions\": [\r\n           {\r\n            \"fieldName\": \"metricType\",\r\n            \"displayName\": \"metricType\",\r\n            \"type\": \"string\"\r\n        }\r\n    ],\r\n    \"metrics\": [],\r\n    \"row\": [],\r\n    \"properties\": {},\r\n    \"queryResponse\": {\r\n        \"metaData\": {\r\n            \"metricType\": \"string\"\r\n        },\r\n        \"queryResponse\": [\r\n            {\r\n                \"metricType\": \"successintents\"\r\n            },\r\n            {\r\n                \"metricType\": \"successtasks\"\r\n            },\r\n            {\r\n                \"metricType\": \"successintents\"\r\n            },\r\n            {\r\n                \"metricType\": \"successintents\"\r\n            },\r\n            {\r\n                \"metricType\": \"successtasks\"\r\n            },\r\n            {\r\n                \"metricType\": \"failedintents\"\r\n            }\r\n        ]\r\n    }\r\n}\r\n<\/pre>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"\ubd07\uc5d0 \ucd94\uac00\ub41c \ud2b9\uc815 \ub9de\ucda4\ud615 \ub300\uc2dc\ubcf4\ub4dc\uc5d0\uc11c \uc704\uc82f\uc758 \ub370\uc774\ud130 \uacb0\uacfc\ub97c \uac00\uc838\uc635\ub2c8\ub2e4. \uc774 API\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \ub9de\ucda4\ud615 \ubcf4\uace0\uc11c\uc758 \ubd07 \ube4c\ub354 API \ubc94\uc704\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. GET https:\/\/{{host}}\/api\/public\/bot\/{{BotID}}\/dashboard\/{{dashboardName}}\/widget\/{{widgetName}}?startDate={{startDate}}&amp;endDate={{endDate}}&amp;limit=-1 \uacbd\ub85c \ub9e4\uac1c \ubcc0\uc218 \ub9e4\uac1c \ubcc0\uc218 \ud544\uc218\/\uc120\ud0dd \uc0ac\ud56d \uc124\uba85 host \ud544\uc218 \ud658\uacbd URL(\uc608: https:\/\/bots.kore.ai) BotID \ud544\uc218 \ubd07 ID \ub610\ub294 \uc2a4\ud2b8\ub9bc ID. \ubd07\uc758 \uc77c\ubc18 \uc124\uc815 \ud398\uc774\uc9c0\uc5d0\uc11c \uc774\ub97c \uc561\uc138\uc2a4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. dashboardName \ud544\uc218 \ud544\uc694\ud55c \uc704\uc82f\uc774 \ud3ec\ud568\ub41c \ub9de\ucda4\ud615...","protected":false},"author":22,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-41195","post","type-post","status-publish","format-standard","hentry","category-api-guide"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=41195"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41195\/revisions"}],"predecessor-version":[{"id":41196,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/41195\/revisions\/41196"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=41195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=41195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=41195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}