@HttpExchange(accept="application/json") public interface RedditService
Service interface for interacting with Reddit's API to fetch subreddit data. This interface defines methods to retrieve new posts from a specified subreddit.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the new posts from a specified subreddit.
  • Method Details

    • getSubredditNew

      @GetExchange("/r/{subreddit}/new?raw_json=1") Thing<Listing> getSubredditNew(@PathVariable String subreddit)
      Retrieves the new posts from a specified subreddit.
      Parameters:
      subreddit - the name of the subreddit to fetch new posts from
      Returns:
      a Thing containing a Listing of new posts