Add connection param to get user's relationships

master
Milton Mazzarri 2017-04-10 21:46:35 -05:00
parent 9893753462
commit 74c1d55f72
No known key found for this signature in database
GPG Key ID: CF3DE6E356E17F1E
1 changed files with 9 additions and 8 deletions

View File

@ -32,12 +32,13 @@ defmodule Hunter.Relationship do
## Parameters
* `conn` - connection credentials
* `id` - list of relationship IDs
"""
@spec relationships([non_neg_integer]) :: [Hunter.Relationship.t]
def relationships(ids) do
@hunter_api.relationships(ids)
@spec relationships(Hunter.Client.t, [non_neg_integer]) :: [Hunter.Relationship.t]
def relationships(conn, ids) do
@hunter_api.relationships(conn, ids)
end
@doc """
@ -60,7 +61,7 @@ defmodule Hunter.Relationship do
## Parameters
* `conn` - Connection credentials
* `id`
* `id` - user id
"""
@spec unfollow(Hunter.Client.t, non_neg_integer) :: Hunter.Relationship.t
@ -74,7 +75,7 @@ defmodule Hunter.Relationship do
## Parameters
* `conn` - Connection credentials
* `id`
* `id` - user id
"""
@spec block(Hunter.Client.t, non_neg_integer) :: Hunter.Relationship.t
@ -86,7 +87,7 @@ defmodule Hunter.Relationship do
Unblock a user
* `conn` - Connection credentials
* `id`
* `id` - user id
"""
@spec unblock(Hunter.Client.t, non_neg_integer) :: Hunter.Relationship.t
@ -100,7 +101,7 @@ defmodule Hunter.Relationship do
## Parameters
* `conn` - Connection credentials
* `id`
* `id` - user id
"""
@spec mute(Hunter.Client.t, non_neg_integer) :: Hunter.Relationship.t
@ -114,7 +115,7 @@ defmodule Hunter.Relationship do
## Parameters
* `conn` - Connection credentials
* `id`
* `id` - user id
"""
@spec unmute(Hunter.Client.t, non_neg_integer) :: Hunter.Relationship.t