reddit v0.1.1 Reddit.Subreddit View Source
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
Link to this function
hot_posts(client, subreddit, opts \\ [limit: 10]) View Source
Link to this function
new_posts(client, subreddit, opts \\ [limit: 10]) View Source
Get the new posts for a given subreddit
iex> new_posts(client, "evangelion")
{:ok, %Tesla.Env{body: %{"data" => %{...}}}
Link to this function
top_posts(client, subreddit, opts \\ [limit: 10]) View Source
Get the top posts for a given subreddit
iex> top_posts(client, "evangelion")
{:ok, %Tesla.Env{body: %{"data" => %{...}}}