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; }
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); }