public static Models.WikiPage GetWikipediaPage(string authorName) { string authorUrlString = urlifyAuthorName(authorName); //wiki URL search is case sensitive! string json = GetProductAsync("https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles=" + authorUrlString).Result; //https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles=Stack%20Overflow Models.WikiPage wikiPage = new Models.WikiPage(json); return(wikiPage); }
public WikiPage_DTO(WikiPage wp) { WikiText = wp.WikiText; }