Package com.github.jreddit.retrieval

Examples of com.github.jreddit.retrieval.ExtendedSubmissions.ofSubreddit()


      // Handle to ExtendedSubmissions, which offers functionality beyond the Reddit API
      ExtendedSubmissions extendedSubms = new ExtendedSubmissions(subms);
     
      // Retrieve the top 323 submissions of funny
      System.out.println("\n============== Extended subreddits submissions retrieval ==============");
      List<Submission> submissionsSubredditExtra = extendedSubms.ofSubreddit("funny", SubmissionSort.TOP, 323, null);
      printSubmissionsList(submissionsSubredditExtra);
 
      // Retrieve the top 532 submissions of query "valentine", user is not given (which is optional)
      System.out.println("\n============== Extended search submissions retrieval ==============");
      List<Submission> submissionsSearchExtra = extendedSubms.search("valentine", SearchSort.RELEVANCE, TimeSpan.ALL, 532);
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.