public API

master
Théophile Choutri 2017-04-15 16:33:11 +02:00
parent b36e55901f
commit 2778b6e9c0
1 changed files with 24 additions and 0 deletions

View File

@ -332,6 +332,17 @@ defmodule Hunter do
@spec unreblog(Hunter.Client.t, non_neg_integer) :: Hunter.Status.t
defdelegate unreblog(conn, id), to: Hunter.Status
@doc """
Fetch the list of users who reblogged the status.
## Parameters
* `conn` - connection credentials
* `id` - status identifier
"""
@spec reblogged_by(Hunter.Client.t, non_neg_integer) :: Hunter.Status.t
defdelegate reblogged_by(conn, id), to: Hunter.Status
@doc """
Favorite a status
@ -367,6 +378,19 @@ defmodule Hunter do
@spec favourites(Hunter.Client.t) :: [Hunter.Status.t]
defdelegate favourites(conn), to: Hunter.Status
@doc """
Fetch the list of users who favourited the status
## Parameters
* `conn` - connection credentials
* `id` - status identifier
"""
@spec favourited_by(Hunter.Client.t, non_neg_integer) :: [Hunter.Account.t]
defdelegate favourited_by(conn, id), to: Hunter.Status
@doc """
Get a list of statuses by a user