五月天激情丁香,国产精品2019,国产成人精品亚洲2020,国产精品免费视频一区二区三区,开心久久婷婷综合中文字幕,天堂视频在线观看免费完整版

數(shù)據(jù)統(tǒng)計(jì)與分析

通過(guò)數(shù)據(jù)接口,開(kāi)發(fā)者可以獲取與公眾平臺(tái)官網(wǎng)統(tǒng)計(jì)模塊類似但更靈活的數(shù)據(jù),還可根據(jù)需要進(jìn)行高級(jí)處理。

  • 接口側(cè)的公眾號(hào)數(shù)據(jù)的數(shù)據(jù)庫(kù)中僅存儲(chǔ)了 2014 年 12 月 1 日 之后的數(shù)據(jù),將查詢不到在此之前的日期,即使有查到,也是不可信的臟數(shù)據(jù);
  • 請(qǐng)開(kāi)發(fā)者在調(diào)用接口獲取數(shù)據(jù)后,將數(shù)據(jù)保存在自身數(shù)據(jù)庫(kù)中,即加快下次用戶的訪問(wèn)速度,也降低了微信側(cè)接口調(diào)用的不必要損耗。
  • 額外注意,獲取圖文群發(fā)每日數(shù)據(jù)接口的結(jié)果中,只有 中間頁(yè)閱讀人數(shù) + 原文頁(yè)閱讀人數(shù) + 分享轉(zhuǎn)發(fā)人數(shù) + 分享轉(zhuǎn)發(fā)次數(shù) + 收藏次數(shù) >=3 的結(jié)果才會(huì)得到統(tǒng)計(jì),過(guò)小的閱讀量的圖文消息無(wú)法統(tǒng)計(jì)。

示例

<?php

$userSummary = $officialAccount->dateCube->userSummary('2014-12-07', '2014-12-08');

var_dump($userSummary);

/* 運(yùn)行結(jié)果:
[
    {
        "ref_date": "2014-12-07",
        "user_source": 0,
        "new_user": 0,
        "cancel_user": 0
    }
    // 后續(xù)還有 ref_date 在 begin_date 和 end_date 之間的數(shù)據(jù)
]
*/

API

$from  示例: `2014-02-13` 獲取數(shù)據(jù)的起始日期
$to    示例: `2014-02-18` 獲取數(shù)據(jù)的結(jié)束日期,`$to`允許設(shè)置的最大值為昨日

`$from` 和 `$to` 的差值需小于 “最大時(shí)間跨度”(比如最大時(shí)間跨度為 1 時(shí),`$from` 和 `$to` 的差值只能為 0,才能小于 1 ),否則會(huì)報(bào)錯(cuò)
  • array userSummary(string $from, string $to)。獲取用戶增減數(shù)據(jù), 最大時(shí)間跨度:7;
  • array userCumulate(string $from, string $to)。獲取累計(jì)用戶數(shù)據(jù), 最大時(shí)間跨度:7;
  • array articleSummary(string $from, string $to)。獲取圖文群發(fā)每日數(shù)據(jù), 最大時(shí)間跨度:1;
  • array articleTotal(string $from, string $to)。獲取圖文群發(fā)總數(shù)據(jù), 最大時(shí)間跨度:1;
  • array userReadSummary(string $from, string $to)。獲取圖文統(tǒng)計(jì)數(shù)據(jù), 最大時(shí)間跨度:3;
  • array userReadHourly(string $from, string $to)。獲取圖文統(tǒng)計(jì)分時(shí)數(shù)據(jù), 最大時(shí)間跨度:1;
  • array userShareSummary(string $from, string $to)。獲取圖文分享轉(zhuǎn)發(fā)數(shù)據(jù), 最大時(shí)間跨度:7;
  • array userShareHourly(string $from, string $to)。獲取圖文分享轉(zhuǎn)發(fā)分時(shí)數(shù)據(jù), 最大時(shí)間跨度:1;
  • array upstreamMessageSummary(string $from, string $to)。獲取消息發(fā)送概況數(shù)據(jù), 最大時(shí)間跨度:7;
  • array upstreamMessageHourly(string $from, string $to)。獲取消息發(fā)送分時(shí)數(shù)據(jù), 最大時(shí)間跨度:1;
  • array upstreamMessageWeekly(string $from, string $to)。獲取消息發(fā)送周數(shù)據(jù), 最大時(shí)間跨度:30;
  • array upstreamMessageMonthly(string $from, string $to)。獲取消息發(fā)送月數(shù)據(jù), 最大時(shí)間跨度:30;
  • array upstreamMessageDistSummary(string $from, string $to)。獲取消息發(fā)送分布數(shù)據(jù), 最大時(shí)間跨度:15;
  • array upstreamMessageDistWeekly(string $from, string $to)。獲取消息發(fā)送分布周數(shù)據(jù), 最大時(shí)間跨度:30;
  • array upstreamMessageDistMonthly(string $from, string $to)。獲取消息發(fā)送分布月數(shù)據(jù), 最大時(shí)間跨度:30;
  • array interfaceSummary(string $from, string $to)。獲取接口分析數(shù)據(jù), 最大時(shí)間跨度:30;
  • array interfaceSummaryHourly(string $from, string $to)。獲取接口分析分時(shí)數(shù)據(jù), 最大時(shí)間跨度:1;
  • array cardSummary(string $from, string $to, int $condSource = 0)。獲取普通卡券分析分時(shí)數(shù)據(jù), 最大時(shí)間跨度:1;
  • array freeCardSummary(string $from, string $to, int $condSource = 0, string $cardId = '')。獲取免費(fèi)券分析分時(shí)數(shù)據(jù), 最大時(shí)間跨度:1;
  • array memberCardSummary(string $from, string $to, int $condSource = 0)。獲取會(huì)員卡分析分時(shí)數(shù)據(jù), 最大時(shí)間跨度:1;
主站蜘蛛池模板: 欧美视频 亚洲视频 | 久久99热精品免费观看欧美 | 国产精品久久久久久久久鸭 | www.成人网| 国产片最新大片免费看 | 五月婷婷基地 | 国产精品视频网站你懂得 | 四虎国产精品永免费 | 精品一区二区三区免费视频 | 99视频免费高清完整版 | 中文字幕在线不卡 | 青草青视频在线观看 | 久久九九精品一区二区 | 久久精品人人爽人人爽快 | 国产精品一区二区三区免费 | 99视频网| 九九久久精品 | 精品二区 | 青草精品在线 | 久久久久国产成人精品 | 国产精品久久久久网站 | 久久成人免费网站 | 视色影院 | 精品动漫一区二区三区 | 九九久久国产精品免费热6 九九久久国产精品 | 精品欧美一区二区在线看片 | 日韩精品午夜 | 久久婷婷五色综合夜啪 | 福利视频影院 | 国产夜色 | 免费一级性片 | 国产精品久久久久桃色tv | 伊人天堂在线 | 国产成在线人视频免费视频 | 久久综合视频网 | 青青伊人网 | 奇米444| 成人精品国产亚洲 | 色啪网站 | 色老师影院| 不忠无删减版手机在线播放 |