{"id":30481,"date":"2021-08-24T12:04:22","date_gmt":"2021-08-24T11:04:22","guid":{"rendered":"https:\/\/multisite.korebots.com\/v9-0\/uncategorised-ja\/user-engagement-trend-api\/"},"modified":"2021-08-24T12:10:06","modified_gmt":"2021-08-24T11:10:06","slug":"user-engagement-trend-api","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/v9-0\/uncategorised-ja\/user-engagement-trend-api\/","title":{"rendered":"\u30e6\u30fc\u30b6\u30fc\u30a8\u30f3\u30b2\u30fc\u30b8\u30e1\u30f3\u30c8\u306e\u30c8\u30ec\u30f3\u30c9API"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p>\u4e00\u5b9a\u671f\u9593\u306b\u30dc\u30c3\u30c8\u3068\u5bfe\u8a71\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u6570\u3092\u3001\u7570\u306a\u308b\u6642\u9593\u9593\u9694\u3067\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p class=\"note\">\u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u30a2\u30d7\u30ea\u306f<em>\u30dc\u30c3\u30c8\u30b9\u30b3\u30fc\u30d7<\/em>\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/p>\n<p><b>POST <\/b><code>https:\/\/{{host}}\/api\/public\/bot\/{{BotID}}\/userEngagementTrend?aggregation_type={{type}}&amp;start_date={{from}}&amp;end_date={{to}}&amp;channels={{channel}}<\/code><\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E3%83%91%E3%82%B9%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF\"><\/span>\u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>\u30d1\u30e9\u30e1\u30fc\u30bf<\/b><\/th>\n<th><b>\u5fc5\u9808\/\u4efb\u610f<\/b><\/th>\n<th><b>\u8aac\u660e<\/b><\/th>\n<\/tr>\n<tr>\n<td>\u30db\u30b9\u30c8<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09<\/td>\n<\/tr>\n<tr>\n<td>BotID<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u30dc\u30c3\u30c8ID\u307e\u305f\u306f\u30b9\u30c8\u30ea\u30fc\u30e0ID\u3002\u30dc\u30c3\u30c8\u306e [\u4e00\u822c\u8a2d\u5b9a] \u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E3%82%AF%E3%82%A8%E3%83%AA%E3%83%91%E3%83%A9%E3%83%A1%E3%83%BC%E3%82%BF\"><\/span>\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<th><b>\u30d1\u30e9\u30e1\u30fc\u30bf<\/b><\/th>\n<th><b>\u5fc5\u9808\/\u4efb\u610f<\/b><\/th>\n<th><b>\u8aac\u660e<\/b><\/th>\n<\/tr>\n<tr>\n<td>filters<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u7d50\u679c\u30bb\u30c3\u30c8\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u8a73\u7d30\u3092\u542b\u3080\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/td>\n<\/tr>\n<tr>\n<td>start_date<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u5bfe\u8c61\u3068\u306a\u308b\u671f\u9593\u306e\u958b\u59cb\u6642\u9593\u3092\u6307\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>end_date<\/td>\n<td>\u5fc5\u9808<\/td>\n<td>\u5bfe\u8c61\u3068\u306a\u308b\u671f\u9593\u306e\u7d42\u4e86\u6642\u9593\u3092\u6307\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30c1\u30e3\u30cd\u30eb<\/td>\n<td>\u4efb\u610f<\/td>\n<td>\u3084\u308a\u53d6\u308a\u304c\u767a\u751f\u3057\u305f\u30c1\u30e3\u30cd\u30eb\u3092\u6307\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>aggregation_type<\/td>\n<td>\u4efb\u610f<\/td>\n<td>\u8a31\u53ef\u3055\u308c\u308b\u30a2\u30b0\u30ea\u30b2\u30fc\u30b7\u30e7\u30f3\u306e\u30bf\u30a4\u30d7\u3092\u6307\u3057\u307e\u3059\u3002\u8003\u3048\u3089\u308c\u308b\u5024\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u6bce\u6642\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\uff09<\/li>\n<li>\u6bce\u65e5<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E8%AA%8D%E8%A8%BC\"><\/span>\u8a8d\u8a3c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u4ee5\u4e0b\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001JWT\u3092\u30d8\u30c3\u30c0\u30fc\u306b\u542b\u3080API\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 <code>auth: {{JWT}}<\/code><\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E5%BF%9C%E7%AD%94%E3%81%AE%E3%82%B3%E3%83%B3%E3%83%86%E3%83%B3%E3%83%84%E3%82%BF%E3%82%A4%E3%83%97\"><\/span>\u5fdc\u7b54\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>application\/json<\/code><\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88\"><\/span>\u30b5\u30f3\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre>curl -X POST \\ &apos;https:\/\/{{host}}\/api\/public\/bot\/{{bot_id}}\/userEngagementTrend?aggregation_type=Hourly&amp;start_date=2020-09-01&amp;end_date=2020-09-05&amp;channels=rtm &apos;\\ -H &apos;auth: {{YOUR_JWT_ACCESS_TOKEN}}&apos; \\ -H &apos;content-type: application\/json&apos;<\/pre>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E5%BF%9C%E7%AD%94\"><\/span>\u30b5\u30f3\u30d7\u30eb\u5fdc\u7b54<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><strong>when aggregation_type = Daily<\/strong>\n<pre>{ results:[ { date: &quot;MMM DD YYYY&quot;, users: &ldquo;number of users&rdquo; }, { date: &quot;MMM DD YYYY&quot;, users: &ldquo;number of users&rdquo; } ], totalResults: 2 }<\/pre>\n<\/li>\n<li><strong>when aggregation_type = Hourly or empty or not given<\/strong>\n<pre>{ [ results:{ date:&quot;Aug 06 2020&quot;, &quot;0 - 1&quot;: 20, &quot;1 - 2&quot;: 0, &quot;2 - 3&quot;: 0, &quot;3 - 4&quot;: 10, &quot;4 - 5&quot;: 0, ..&quot;23 - 0&quot;: 0 }, { date:&quot;Aug 07 2020&quot;, &quot;0 - 1&quot;: 20, &quot;1 - 2&quot;: 0, ..&quot;21 - 22&quot;: 0, &quot;22 - 23&quot;: 0, &quot;23 - 0&quot;: 0 }], totalResults: 2 }<\/pre>\n<p>&nbsp;<\/li>\n<\/ul>\n<\/div><\/div><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><\/section>\n","protected":false},"excerpt":{"rendered":"\u4e00\u5b9a\u671f\u9593\u306b\u30dc\u30c3\u30c8\u3068\u5bfe\u8a71\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u6570\u3092\u3001\u7570\u306a\u308b\u6642\u9593\u9593\u9694\u3067\u63d0\u4f9b\u3057\u307e\u3059\u3002 \u3053\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u30a2\u30d7\u30ea\u306f\u30dc\u30c3\u30c8\u30b9\u30b3\u30fc\u30d7\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002 POST https:\/\/{{host}}\/api\/public\/bot\/{{BotID}}\/userEngagementTrend?aggregation_type={{type}}&amp;start_date={{from}}&amp;end_date={{to}}&amp;channels={{channel}} \u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf \u30d1\u30e9\u30e1\u30fc\u30bf \u5fc5\u9808\/\u4efb\u610f \u8aac\u660e \u30db\u30b9\u30c8 \u5fc5\u9808 \u74b0\u5883URL\uff08\u4f8b\uff1a https:\/\/bots.kore.ai\uff09 BotID \u5fc5\u9808 \u30dc\u30c3\u30c8ID\u307e\u305f\u306f\u30b9\u30c8\u30ea\u30fc\u30e0ID\u3002\u30dc\u30c3\u30c8\u306e [\u4e00\u822c\u8a2d\u5b9a] \u30da\u30fc\u30b8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf &nbsp; \u30d1\u30e9\u30e1\u30fc\u30bf \u5fc5\u9808\/\u4efb\u610f \u8aac\u660e filters \u5fc5\u9808 \u7d50\u679c\u30bb\u30c3\u30c8\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u8a73\u7d30\u3092\u542b\u3080\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 start_date \u5fc5\u9808 \u5bfe\u8c61\u3068\u306a\u308b\u671f\u9593\u306e\u958b\u59cb\u6642\u9593\u3092\u6307\u3057\u307e\u3059\u3002 end_date \u5fc5\u9808 \u5bfe\u8c61\u3068\u306a\u308b\u671f\u9593\u306e\u7d42\u4e86\u6642\u9593\u3092\u6307\u3057\u307e\u3059\u3002 \u30c1\u30e3\u30cd\u30eb \u4efb\u610f \u3084\u308a\u53d6\u308a\u304c\u767a\u751f\u3057\u305f\u30c1\u30e3\u30cd\u30eb\u3092\u6307\u3057\u307e\u3059\u3002 aggregation_type \u4efb\u610f \u8a31\u53ef\u3055\u308c\u308b\u30a2\u30b0\u30ea\u30b2\u30fc\u30b7\u30e7\u30f3\u306e\u30bf\u30a4\u30d7\u3092\u6307\u3057\u307e\u3059\u3002\u8003\u3048\u3089\u308c\u308b\u5024\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002 \u6bce\u6642\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\uff09 \u6bce\u65e5 \u8a8d\u8a3c \u4ee5\u4e0b\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u3001JWT\u3092\u30d8\u30c3\u30c0\u30fc\u306b\u542b\u3080API\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002 auth: {{JWT}} \u5fdc\u7b54\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7 application\/json \u30b5\u30f3\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8 curl -X POST \\ &apos;https:\/\/{{host}}\/api\/public\/bot\/{{bot_id}}\/userEngagementTrend?aggregation_type=Hourly&amp;start_date=2020-09-01&amp;end_date=2020-09-05&amp;channels=rtm &apos;\\ -H &apos;auth: {{YOUR_JWT_ACCESS_TOKEN}}&apos;...","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/30481"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/comments?post=30481"}],"version-history":[{"count":3,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/30481\/revisions"}],"predecessor-version":[{"id":30687,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/30481\/revisions\/30687"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/media?parent=30481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/categories?post=30481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/tags?post=30481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}