Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }