You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
879 B

namespace learun.wechat
{
/// <summary>
/// 版 本 EasyCode EC管理后台
/// Copyright (c) 2019-present EC管理有限公司
/// 创建人:tobin
/// 日 期:2019.11.06
/// 描 述:用户信息获取
/// </summary>
public class OpenUserGet : OperationRequestBase<OpenUserGetResult, HttpGetRequest>
{
private string url = "https://api.weixin.qq.com/sns/userinfo?access_token={0}&openid={1}lang=zh_CN";
/// <summary>
///
/// </summary>
/// <returns></returns>
protected override string Url()
{
return string.Format(url, access_token, openid);
}
/// <summary>
/// 普通用户标识,对该公众帐号唯一
/// </summary>
/// <returns></returns>
[IsNotNull]
public string openid { get; set; }
/// <summary>
/// token
/// </summary>
/// <returns></returns>
[IsNotNull]
public string access_token { get; set; }
}
}