Interface RedditClient


@HttpExchange(accept="application/json") @ClientRegistrationId("reddit") public interface RedditClient
Client for interacting with the Reddit API.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The client registration ID for Reddit API.
  • Method Summary

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

  • Method Details

    • getSubredditNew

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