using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Learun.Application.WeChat { public class OpenUserGet : OperationRequestBase { private string url = "https://api.weixin.qq.com/sns/userinfo?access_token={0}&openid={1}lang=zh_CN"; protected override string Url() { return string.Format(url, access_token, openid); } /// /// 普通用户标识,对该公众帐号唯一 /// /// [IsNotNull] public string openid { get; set; } /// /// token /// /// [IsNotNull] public string access_token { get; set; } } }