Exemple #1
0
        /// <summary>
        /// 设置备注名
        /// </summary>
        /// <param name="openId">用户标识</param>
        /// <param name="remark">新的备注名,长度必须小于30字符</param>
        /// <returns></returns>
        public static async Task <RemarkUser> RemarkAsync(string openId, string remark)
        {
            var remarkUser = new RemarkUser(openId, remark);
            var response   = await remarkUser.RequestAsModelAsync <RemarkUser>();

            return(response);
        }
Exemple #2
0
        /// <summary>
        /// 设置备注名
        /// </summary>
        /// <param name="openId">用户标识</param>
        /// <param name="remark">新的备注名,长度必须小于30字符</param>
        /// <returns></returns>
        public static RemarkUser Remark(string openId, string remark)
        {
            var remarkUser = new RemarkUser(openId, remark);
            var response   = remarkUser.RequestAsModel <RemarkUser>();

            return(response);
        }