public WikiPage GetPage(string page, string version = null) { var request = WebAgent.CreateGet(string.Format(GetWikiPageUrl, Subreddit.Name, page, version)); var response = request.GetResponse(); var json = JObject.Parse(WebAgent.GetResponseString(response.GetResponseStream())); var result = new WikiPage(Reddit, json["data"], WebAgent); return result; }
public WikiPage GetPage(string page, string version = null) { var json = WebAgent.CreateAndExecuteRequest(string.Format(GetWikiPageUrl, Subreddit.Name, page, version)); var result = new WikiPage(Reddit, json["data"], WebAgent); return result; }