public string GetContactsAccessToken()
        {
            var corpId = WeixinConfig.GetCorpId();
            var secret = WeixinConfig.GetContactsSecret();

            return(AccessTokenContainer.TryGetToken(corpId, secret));
        }
        public string GetAccessToken(string appConfigName)
        {
            var corpId = WeixinConfig.GetCorpId();
            var secret = WeixinConfig.GetAppSecret(appConfigName);

            return(AccessTokenContainer.TryGetToken(corpId, secret));
        }
        public string GetCode(string redirectUrl, string state)
        {
            var corpId = WeixinConfig.GetCorpId();

            return(OAuth2Api.GetCode(corpId, redirectUrl, state));
        }