Esempio n. 1
0
        public WeixinResult Update(WeMediaId mediaId, int index)
        {
            TkDebug.AssertArgumentNull(mediaId, "mediaId", null);

            string url = WeUtil.GetUrl(WeMaterialConst.UPDATE_NEWS);
            WeNewsUpdate request = new WeNewsUpdate(mediaId, index, this.Articles[0]);
            string res = request.WriteJson();

            var result = WeUtil.PostDataToUri(url, res, new WeixinResult());
            return result;
        }
Esempio n. 2
0
        public WeixinResult Update(WeMediaId mediaId, int index)
        {
            TkDebug.AssertArgumentNull(mediaId, "mediaId", null);

            string       url     = WeUtil.GetUrl(WeMaterialConst.UPDATE_NEWS);
            WeNewsUpdate request = new WeNewsUpdate(mediaId, index, this.Articles[0]);
            string       res     = request.WriteJson();

            var result = WeUtil.PostDataToUri(url, res, new WeixinResult());

            return(result);
        }