Examples of ofUser()


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

      Comments.printCommentTree(commentsSubmission);
     
     
      // Retrieve comments of a user
      System.out.println("\n============== Basic user comments ==============");
      List<Comment> commentsUser = coms.ofUser("Unidan", UserOverviewSort.NEW, TimeSpan.ALL, -1, 80, null, null, true);
      Comments.printCommentTree(commentsUser); // Note: this tree is already flat, because listing is one level
     
     
      /***************************************************************************************************
       * Second: extended API functionality
View Full Code Here

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

      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 ==============");
      List<Comment> commentsUserExtra = extendedComs.ofUser("Unidan", UserOverviewSort.HOT, TimeSpan.ALL, RedditConstants.APPROXIMATE_MAX_LISTING_AMOUNT, null);
      Comments.printCommentTree(commentsUserExtra);
     
    } catch (RetrievalFailedException e) {
      e.printStackTrace();
    } catch (RedditError e) {
View Full Code Here

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

      List<Submission> submissionsSearchExtra = extendedSubms.search("valentine", SearchSort.RELEVANCE, TimeSpan.ALL, 532);
      printSubmissionsList(submissionsSearchExtra);
     
      // Retrieve the top 233 submissions of a user
      System.out.println("\n============== Extended user submissions retrieval ==============");
      List<Submission> submissionsUserExtra = extendedSubms.ofUser("Unidan", UserSubmissionsCategory.SUBMITTED, UserOverviewSort.HOT, 233);
      printSubmissionsList(submissionsUserExtra);
     
    } catch (RetrievalFailedException e) {
      e.printStackTrace();
    } catch (RedditError e) {
View Full Code Here

Examples of com.github.jreddit.retrieval.Submissions.ofUser()

      List<Submission> submissionsSearch = subms.search("flowers", null, null, TimeSpan.MONTH, -1, 100, null, null, true);
      printSubmissionsList(submissionsSearch);
     
      // Retrieve submissions of a user
      System.out.println("\n============== Basic user submissions ==============");
      List<Submission> submissionsUser = subms.ofUser("Unidan", UserSubmissionsCategory.SUBMITTED, UserOverviewSort.TOP, -1, 100, null, null, true);
      printSubmissionsList(submissionsUser);
     
     
      /***************************************************************************************************
       * Second: extended API functionality
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.