Beispiel #1
0
        /// <summary>
        /// 获取消息统计概览
        ///  时间宽度最多 【七天】
        /// </summary>
        /// <param name="statisticReq">时间跨度最多【七天】</param>
        /// <returns></returns>
        public async Task <WXStatResp <WXChatUpStatMo> > GetUpMsgStatisticAsync(WXStatReq statisticReq)
        {
            var req = new OssHttpRequest();

            req.HttpMethod = HttpMethod.Post;
            req.AddressUrl = string.Concat(m_ApiUrl, "/datacube/getupstreammsg");
            req.CustomBody = GetRequestBody(statisticReq);

            return(await RestCommonPlatAsync <WXStatResp <WXChatUpStatMo> >(req));
        }
Beispiel #2
0
        /// <summary>
        ///   接口调用分析接口
        ///     最大时间宽度【三十天】
        /// </summary>
        /// <param name="statReq"> 最大时间宽度【三十天】</param>
        /// <returns></returns>
        public async Task <WXInterfaceStatResp> GetInterfaceStatisticAsync(WXStatReq statReq)
        {
            var req = new OssHttpRequest
            {
                HttpMethod = HttpMethod.Post,
                AddressUrl = string.Concat(m_ApiUrl, "/datacube/getinterfacesummary"),
                CustomBody = GetRequestBody(statReq)
            };

            return(await RestCommonPlatAsync <WXInterfaceStatResp>(req));
        }
Beispiel #3
0
        /// <summary>
        /// 获取【月】消息统计概览
        ///  时间宽度最多 【三十天】
        /// </summary>
        /// <param name="statisticReq">时间跨度最多【三十天】</param>
        /// <returns></returns>
        public async Task <WXStatResp <WXChatUpStatMo> > GetUpMsgMonthStatisticAsync(WXStatReq statisticReq)
        {
            var req = new OssHttpRequest
            {
                HttpMethod = HttpMethod.Post,
                AddressUrl = string.Concat(m_ApiUrl, "/datacube/getupstreammsgmonth"),
                CustomBody = GetRequestBody(statisticReq)
            };

            return(await RestCommonOffcialAsync <WXStatResp <WXChatUpStatMo> >(req));
        }
        /// <summary>
        ///  获取指定某段时间 微信文章 的统计数据
        /// </summary>
        /// <param name="statisticReq">时间跨度最大【三天】</param>
        /// <returns></returns>
        public async Task <WXStatResp <WXArticleStatDaliyMo> > GetAticleUserReadStatisticAsync(WXStatReq statisticReq)
        {
            var req = new OssHttpRequest
            {
                HttpMethod = HttpMethod.Post,
                AddressUrl = string.Concat(m_ApiUrl, "/datacube/getuserread"),
                CustomBody = GetRequestBody(statisticReq)
            };

            return(await RestCommonOffcialAsync <WXStatResp <WXArticleStatDaliyMo> >(req));
        }