Examples of ofSubmission()


Examples of com.github.jreddit.retrieval.Comments.ofSubmission()

      // Handle to Comments, which offers the basic API functionality
      Comments coms = new Comments(restClient, user);
     
      // Retrieve comments of a submission
      System.out.println("\n============== Basic submission comments ==============");
      List<Comment> commentsSubmission = coms.ofSubmission("29p8fe", null, 0, 8, 100, CommentSort.TOP);
      Comments.printCommentTree(commentsSubmission);
     
     
      // Retrieve comments of a user
      System.out.println("\n============== Basic user comments ==============");
View Full Code Here

Examples of com.github.jreddit.retrieval.ExtendedComments.ofSubmission()

      // Handle to ExtendedComments, which offers functionality beyond the Reddit API
      ExtendedComments extendedComs = new ExtendedComments(coms);
     
      // Retrieve the top 50 first level comments, and all their (up to 500) subcomments each
      System.out.println("\n============== Extended submission comments retrieval ==============");
      List<Comment> commentsSubmissionExtra = extendedComs.ofSubmission("2911vg", CommentSort.TOP, 50, null);
      Comments.printCommentTree(commentsSubmissionExtra);
 
      // Retrieve all comments that are possible to retrieve from a user (there is a limit in Reddit which only
      // allows you to retrieve about ~1000 posts in a listing, e.g. a subreddit or user posts listing)
      System.out.println("\n============== Extended user comments retrieval ==============");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.