View Source Reddit.Subreddit (reddit v0.2.0)
Operations to do with subreddits
Shared options:
- limit [int]: the max number of objects the list should return, default 10.
- after [str]: the "fullname" of the start of the slice, usually of the form
t3_id - before [str]: the "fullname" of the end of the slice
Link to this section Summary
Link to this section Functions
Get the new posts for a given subreddit
iex> new_posts(client, "evangelion")
{:ok, %Tesla.Env{body: %{"data" => %{...}}}
Get the top posts for a given subreddit
iex> top_posts(client, "evangelion")
{:ok, %Tesla.Env{body: %{"data" => %{...}}}