Esempio n. 1
0
 /// <summary>
 /// 获取「群聊数据统计」数据 按群主聚合的方式
 /// </summary>
 /// <param name="accessTokenOrAppKey"></param>
 /// <param name="data"></param>
 /// <param name="timeOut"></param>
 /// <returns></returns>
 public static async Task <GetGroupChatListResult> GroupChatStatisticOwnerAsync(string accessTokenOrAppKey, GetGroupChatParam data, int timeOut = Config.TIME_OUT)
 {
     return(await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
     {
         var url = string.Format(Config.ApiWorkHost + "/cgi-bin/externalcontact/groupchat/statistic?access_token={0}", accessToken);
         return await CommonJsonSend.SendAsync <GetGroupChatListResult>(null, url, data, CommonJsonSendType.POST, timeOut).ConfigureAwait(false);
     }, accessTokenOrAppKey).ConfigureAwait(false));
 }
Esempio n. 2
0
 /// <summary>
 /// 获取「群聊数据统计」数据 按群主聚合的方式
 /// </summary>
 /// <param name="accessTokenOrAppKey"></param>
 /// <param name="data"></param>
 /// <param name="timeOut"></param>
 /// <returns></returns>
 public static GetGroupChatListResult GroupChatStatisticOwner(string accessTokenOrAppKey, GetGroupChatParam data, int timeOut = Config.TIME_OUT)
 {
     return(ApiHandlerWapper.TryCommonApi(accessToken =>
     {
         var url = string.Format(Config.ApiWorkHost + "/cgi-bin/externalcontact/groupchat/statistic?access_token={0}", accessToken);
         return CommonJsonSend.Send <GetGroupChatListResult>(null, url, data, CommonJsonSendType.POST, timeOut);
     }, accessTokenOrAppKey));
 }