コード例 #1
0
        /// <summary>
        /// 查询用户所在的分组
        /// </summary>
        /// <param name="openId"></param>
        /// <returns></returns>
        public static async Task <QueryGroupOfUser> QueryAsync(string openId)
        {
            var query    = new QueryGroupOfUser(openId);
            var response = await query.RequestAsModelAsync <QueryGroupOfUser>();

            return(response);
        }
コード例 #2
0
        /// <summary>
        /// 查询用户所在的分组
        /// </summary>
        /// <param name="openId"></param>
        /// <returns></returns>
        public static QueryGroupOfUser Query(string openId)
        {
            var query    = new QueryGroupOfUser(openId);
            var response = query.RequestAsModel <QueryGroupOfUser>();

            return(response);
        }