// Handle to Submissions, which offers the basic API functionality
Submissions subms = new Submissions(restClient, user);
// Retrieve submissions of a submission
System.out.println("\n============== Basic subreddit submissions ==============");
List<Submission> submissionsSubreddit = subms.ofSubreddit("flowers", SubmissionSort.TOP, -1, 100, null, null, true);
printSubmissionsList(submissionsSubreddit);
// Search for submissions
System.out.println("\n============== Basic search submissions ==============");
List<Submission> submissionsSearch = subms.search("flowers", null, null, TimeSpan.MONTH, -1, 100, null, null, true);