public void UpdateArticle(WikiArticle article) { string ret = fbCommand("editArticle", "ixWikiPage=" + article.ID.ToString(), "sBody=" + article.Body, "sHeadline=" + article.Headline); }
public void TestWikiEdit() { FogBugz fb = Login(); WikiArticle wa = fb.ViewArticle(333333); wa.Body += " Edit last " + DateTime.Now.ToLongDateString(); fb.UpdateArticle(wa); }
public WikiArticle ViewArticle(int ID) { string ret = fbCommand("viewArticle", "ixWikiPage=" + ID.ToString()); XmlDocument doc = xmlDoc(ret); WikiArticle wa = new WikiArticle(); wa.ID = ID; wa.Headline = doc.SelectSingleNode("//sHeadline").InnerText; wa.Body = doc.SelectSingleNode("//sBody").InnerText; return(wa); }
public WikiArticle ViewArticle(int ID) { string ret = fbCommand("viewArticle", "ixWikiPage=" + ID.ToString()); XmlDocument doc = xmlDoc(ret); WikiArticle wa = new WikiArticle(); wa.ID = ID; wa.Headline = doc.SelectSingleNode("//sHeadline").InnerText; wa.Body = doc.SelectSingleNode("//sBody").InnerText; return wa; }
public void UpdateArticle(WikiArticle article) { string ret = fbCommand("editArticle", "ixWikiPage=" + article.ID.ToString(), "sBody=" + article.Body, "sHeadline=" + article.Headline); }