/// <summary> /// 获取「群聊数据统计」数据 按自然日聚合的方式 /// </summary> /// <param name="accessTokenOrAppKey"></param> /// <param name="data"></param> /// <param name="timeOut"></param> /// <returns></returns> public static async Task <GetGroupChatGroupByDayListResult> GroupChatStatisticGroupByDayAsync(string accessTokenOrAppKey, GetGroupChatGroupByDayParam data, int timeOut = Config.TIME_OUT) { return(await ApiHandlerWapper.TryCommonApiAsync(async accessToken => { var url = string.Format(Config.ApiWorkHost + "/cgi-bin/externalcontact/groupchat/statistic_group_by_day?access_token={0}", accessToken); return await CommonJsonSend.SendAsync <GetGroupChatGroupByDayListResult>(null, url, data, CommonJsonSendType.POST, timeOut).ConfigureAwait(false); }, accessTokenOrAppKey).ConfigureAwait(false)); }
/// <summary> /// 获取「群聊数据统计」数据 按自然日聚合的方式 /// </summary> /// <param name="accessTokenOrAppKey"></param> /// <param name="data"></param> /// <param name="timeOut"></param> /// <returns></returns> public static GetGroupChatGroupByDayListResult GroupChatStatisticGroupByDay(string accessTokenOrAppKey, GetGroupChatGroupByDayParam data, int timeOut = Config.TIME_OUT) { return(ApiHandlerWapper.TryCommonApi(accessToken => { var url = string.Format(Config.ApiWorkHost + "/cgi-bin/externalcontact/groupchat/statistic_group_by_day?access_token={0}", accessToken); return CommonJsonSend.Send <GetGroupChatGroupByDayListResult>(null, url, data, CommonJsonSendType.POST, timeOut); }, accessTokenOrAppKey)); }