Example #1
0
        public static CommentListing GetComments(Session session)
        {
            var request = new Request
            {
                Url    = "http://www.reddit.com/r/friends/comments/.json",
                Method = "GET",
                Cookie = session.Cookie
            };

            var json = string.Empty;

            if (request.Execute(out json) != System.Net.HttpStatusCode.OK)
            {
                throw new RedditException(json);
            }

            var o = JObject.Parse(json);

            return(CommentListing.FromJson(o));
        }