public static CorpApp Query(int agentId) { string url = string.Format(ObjectUtil.SysCulture, WeCorpConst.AGENT_GET, CorpAccessToken.GetTokenWithSecret(WeixinSettings.Current.CorpUserManagerSecret), agentId); CorpApp result = WeUtil.GetFromUri(url, new CorpApp()); return(result); }
public CorpAppUpdateInfo(CorpApp app) { AgentId = app.AgentId; ReportLocationFlag = app.ReportLocationFlag; LogoMediaId = app.LogoMediaId; Name = app.Name; Description = app.Description; RedirectDomain = app.RedirectDomain; IsReportUser = app.IsReportUser; IsReportEnter = app.IsReportEnter; }