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.
 
 
 
 
 
 

29 lines
894 B

  1. namespace Learun.Application.WeChat
  2. {
  3. public class UserGetuserinfo : OperationRequestBase<UserGetuserinfoResult, HttpGetRequest>
  4. {
  5. private string url =
  6. "https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code={0}&agentid={1}";
  7. protected override string Url()
  8. {
  9. return string.Format(url, code, agentid);
  10. }
  11. /// <summary>
  12. /// 通过员工授权获取到的code,每次员工授权带上的code将不一样,code只能使用一次,5分钟未被使用自动过期
  13. /// </summary>
  14. /// <returns></returns>
  15. [IsNotNull]
  16. public string code { get; set; }
  17. /// <summary>
  18. /// 跳转链接时所在的企业应用ID
  19. /// </summary>
  20. /// <returns></returns>
  21. [IsNotNull]
  22. public string agentid { get; set; }
  23. }
  24. }