public static WeThirdPartyPermanentCodeResponse get_permanent_code(string authCode)
        {
            TkDebug.AssertArgumentNullOrEmpty(authCode, "authCode", null);

            string url = WeCorpUtil.GetCorpUrl(WeThirdPartyConst.PERMANENT_CODE, WeixinSettings.Current.CorpUserManagerSecret);
            WeThirdPartyPermanentCodeRequest request = new WeThirdPartyPermanentCodeRequest(authCode);
            var result = WeUtil.PostDataToUri(url, request.WriteJson(), new WeThirdPartyPermanentCodeResponse());
            return result;
        }
Пример #2
0
        public static WeThirdPartyPermanentCodeResponse get_permanent_code(string authCode)
        {
            TkDebug.AssertArgumentNullOrEmpty(authCode, "authCode", null);

            string url = WeCorpUtil.GetCorpUrl(WeThirdPartyConst.PERMANENT_CODE, WeixinSettings.Current.CorpUserManagerSecret);
            WeThirdPartyPermanentCodeRequest request = new WeThirdPartyPermanentCodeRequest(authCode);
            var result = WeUtil.PostDataToUri(url, request.WriteJson(), new WeThirdPartyPermanentCodeResponse());

            return(result);
        }