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.
38 lines
1.0 KiB
38 lines
1.0 KiB
namespace learun.wechat
|
|
{
|
|
/// <summary>
|
|
/// 版 本 EasyCode EC管理后台
|
|
/// Copyright (c) 2019-present EC管理有限公司
|
|
/// 创建人:tobin
|
|
/// 日 期:2019.11.06
|
|
/// 描 述:获取用户信息
|
|
/// </summary>
|
|
public class UserGetuserinfo : OperationRequestBase<UserGetuserinfoResult, HttpGetRequest>
|
|
{
|
|
private string url =
|
|
"https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code={0}&agentid={1}";
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
protected override string Url()
|
|
{
|
|
return string.Format(url, code, agentid);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 通过员工授权获取到的code,每次员工授权带上的code将不一样,code只能使用一次,5分钟未被使用自动过期
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[IsNotNull]
|
|
public string code { get; set; }
|
|
|
|
/// <summary>
|
|
/// 跳转链接时所在的企业应用ID
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[IsNotNull]
|
|
public string agentid { get; set; }
|
|
}
|
|
}
|