{"id":185554,"date":"2023-07-31T07:31:31","date_gmt":"2023-07-30T23:31:31","guid":{"rendered":"http:\/\/www.idc.net\/help\/185554\/"},"modified":"2023-07-31T07:31:31","modified_gmt":"2023-07-30T23:31:31","slug":"%e5%90%8e%e6%b5%aa%e4%ba%91%e5%b0%8f%e7%a8%8b%e5%ba%8f%e6%95%99%e7%a8%8b%ef%bc%9a%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f-getdailysummary","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/185554\/","title":{"rendered":"\u540e\u6d6a\u4e91\u5c0f\u7a0b\u5e8f\u6559\u7a0b\uff1a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f getDailySummary"},"content":{"rendered":"<h2>analysis.getDailySummary<\/h2>\n<blockquote><p>\n  \u672c\u63a5\u53e3\u5e94\u5728\u670d\u52a1\u5668\u7aef\u8c03\u7528\uff0c\u8be6\u7ec6\u8bf4\u660e\u53c2\u89c1 \u670d\u52a1\u7aefAPI\u3002\n<\/p><\/blockquote>\n<blockquote><p>\n  \u672c\u63a5\u53e3\u652f\u6301 \u4e91\u8c03\u7528\u3002\u9700\u5f00\u53d1\u8005\u5de5\u5177\u7248\u672c &gt;=&nbsp;1.02.1904090\uff08\u6700\u65b0 \u7a33\u5b9a\u7248\u4e0b\u8f7d\uff09<br \/>\n <br \/>wx-server-sdk&nbsp;&gt;=&nbsp;0.4.0\n<\/p><\/blockquote>\n<p>\u83b7\u53d6\u7528\u6237\u8bbf\u95ee\u5c0f\u7a0b\u5e8f\u6570\u636e\u6982\u51b5<\/p>\n<p>\u8c03\u7528\u65b9\u5f0f\uff1a<\/p>\n<ul>\n<li>HTTPS \u8c03\u7528<\/li>\n<li>\u4e91\u8c03\u7528<\/li>\n<\/ul>\n<h2>HTTPS \u8c03\u7528<\/h2>\n<h3>\u8bf7\u6c42\u5730\u5740<\/h3>\n<pre><code>POST https:\/\/api.weixin.qq.com\/datacube\/getweanalysisappiddailysummarytrend?access_token=ACCESS_TOKEN\n<\/code><\/pre>\n<h3>\u8bf7\u6c42\u53c2\u6570<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u5fc5\u586b<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>access_token<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u63a5\u53e3\u8c03\u7528\u51ed\u8bc1<\/td>\n<\/tr>\n<tr>\n<td>begin_date<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u5f00\u59cb\u65e5\u671f\u3002\u683c\u5f0f\u4e3a yyyymmdd<\/td>\n<\/tr>\n<tr>\n<td>end_date<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u7ed3\u675f\u65e5\u671f\uff0c\u9650\u5b9a\u67e5\u8be21\u5929\u6570\u636e\uff0c\u5141\u8bb8\u8bbe\u7f6e\u7684\u6700\u5927\u503c\u4e3a\u6628\u65e5\u3002\u683c\u5f0f\u4e3a yyyymmdd<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u8fd4\u56de\u503c<\/h3>\n<h3>Object<\/h3>\n<p>\u8fd4\u56de\u7684 JSON \u6570\u636e\u5305<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>list<\/td>\n<td>Array.&lt;Object&gt;<\/td>\n<td>\u6570\u636e\u5217\u8868<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>list \u7684\u7ed3\u6784<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ref_date<\/td>\n<td>string<\/td>\n<td>\u65e5\u671f\uff0c\u683c\u5f0f\u4e3a yyyymmdd<\/td>\n<\/tr>\n<tr>\n<td>visit_total<\/td>\n<td>number<\/td>\n<td>\u7d2f\u8ba1\u7528\u6237\u6570<\/td>\n<\/tr>\n<tr>\n<td>share_pv<\/td>\n<td>number<\/td>\n<td>\u8f6c\u53d1\u6b21\u6570<\/td>\n<\/tr>\n<tr>\n<td>share_uv<\/td>\n<td>number<\/td>\n<td>\u8f6c\u53d1\u4eba\u6570<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u8bf7\u6c42\u6570\u636e\u793a\u4f8b<\/h3>\n<pre><code>{\n  \"begin_date\" : \"20170313\",\n  \"end_date\" : \"20170313\"\n}\n<\/code><\/pre>\n<h3>\u8fd4\u56de\u6570\u636e\u793a\u4f8b<\/h3>\n<pre><code>{\n  \"list\": [\n    {\n      \"ref_date\": \"20170313\",\n      \"visit_total\": 391,\n      \"share_pv\": 572,\n      \"share_uv\": 383\n    }\n  ]\n}\n<\/code><\/pre>\n<h2>\u4e91\u8c03\u7528<\/h2>\n<blockquote><p> \u4e91\u8c03\u7528\u662f\u5c0f\u7a0b\u5e8f\u00b7\u4e91\u5f00\u53d1\u63d0\u4f9b\u7684\u5728\u4e91\u51fd\u6570\u4e2d\u8c03\u7528\u5fae\u4fe1\u5f00\u653e\u63a5\u53e3\u7684\u80fd\u529b\uff0c\u9700\u8981\u5728\u4e91\u51fd\u6570\u4e2d\u901a\u8fc7&nbsp;wx-server-sdk&nbsp;\u4f7f\u7528\u3002\n<\/p><\/blockquote>\n<h3>\u63a5\u53e3\u65b9\u6cd5<\/h3>\n<pre><code>openapi.analysis.getDailySummary\n<\/code><\/pre>\n<blockquote><p>\n  \u9700\u5728&nbsp;config.json&nbsp;\u4e2d\u914d\u7f6e&nbsp;analysis.getDailySummary&nbsp;API \u7684\u6743\u9650\uff0c \u8be6\u60c5\n<\/p><\/blockquote>\n<h3>\u8bf7\u6c42\u53c2\u6570<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u5fc5\u586b<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>beginDate<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u5f00\u59cb\u65e5\u671f\u3002\u683c\u5f0f\u4e3a yyyymmdd<\/td>\n<\/tr>\n<tr>\n<td>endDate<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u7ed3\u675f\u65e5\u671f\uff0c\u9650\u5b9a\u67e5\u8be21\u5929\u6570\u636e\uff0c\u5141\u8bb8\u8bbe\u7f6e\u7684\u6700\u5927\u503c\u4e3a\u6628\u65e5\u3002\u683c\u5f0f\u4e3a yyyymmdd<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u8fd4\u56de\u503c<\/h3>\n<h3>Object<\/h3>\n<p>\u8fd4\u56de\u7684 JSON \u6570\u636e\u5305<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>list<\/td>\n<td>Array.&lt;Object&gt;<\/td>\n<td>\u6570\u636e\u5217\u8868<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>list \u7684\u7ed3\u6784<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>refDate<\/td>\n<td>string<\/td>\n<td>\u65e5\u671f\uff0c\u683c\u5f0f\u4e3a yyyymmdd<\/td>\n<\/tr>\n<tr>\n<td>visitTotal<\/td>\n<td>number<\/td>\n<td>\u7d2f\u8ba1\u7528\u6237\u6570<\/td>\n<\/tr>\n<tr>\n<td>sharePv<\/td>\n<td>number<\/td>\n<td>\u8f6c\u53d1\u6b21\u6570<\/td>\n<\/tr>\n<tr>\n<td>shareUv<\/td>\n<td>number<\/td>\n<td>\u8f6c\u53d1\u4eba\u6570<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u8bf7\u6c42\u6570\u636e\u793a\u4f8b<\/h3>\n<pre><code>const cloud = require('wx-server-sdk')\ncloud.init()\nexports.main = async (event, context) =&gt; {\n  try {\n    const result = await cloud.openapi.analysis.getDailySummary({\n        beginDate: '20170313',\n        endDate: '20170313'\n      })\n    return result\n  } catch (err) {\n    return err\n  }\n}\n<\/code><\/pre>\n<h3>\u8fd4\u56de\u6570\u636e\u793a\u4f8b<\/h3>\n<pre><code>{\n  \"list\": [\n    {\n      \"refDate\": \"20170313\",\n      \"visitTotal\": 391,\n      \"sharePv\": 572,\n      \"shareUv\": 383\n    }\n  ],\n  \"errMsg\": \"openapi.analysis.getDailySummary:ok\"\n}<\/code><\/pre>\n<p> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>analysis.getDailySummary \u672c\u63a5\u53e3\u5e94\u5728\u670d\u52a1\u5668\u7aef\u8c03\u7528\uff0c\u8be6\u7ec6\u8bf4\u660e\u53c2\u89c1 \u670d\u52a1\u7aefAPI\u3002 \u672c\u63a5\u53e3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[182398],"tags":[],"class_list":["post-185554","post","type-post","status-publish","format-standard","hentry","category-mini-program"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/185554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=185554"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/185554\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=185554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=185554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=185554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}