Package com.github.jreddit.submissions

Examples of com.github.jreddit.submissions.Submissions


    public static void main(String[] args) throws Exception
    {
        RestClient restClient = PoliteRestClient.get();
        restClient.setUserAgent("Post-Reader-Bot");
        Submissions fetcher = new Submissions( restClient );

        String after = null;
        for (int page = 1; page <= NUMBER_OF_PAGES; page++)
        {
            PaginationResult<Submission> result = fetcher.getSubmissions(SUBREDDIT, after);
            after = result.getAfter();
            for ( Submission submission : result.getResults() )
            {
                System.out.println( submission.getTitle() + ", " + submission.getAuthor() );
            }
View Full Code Here

TOP

Related Classes of com.github.jreddit.submissions.Submissions

Copyright © 2018 www.massapicom. 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.