Relationship entity
This module defines a Hunter.Relationship struct and the main functions
for working with Relationship.
Fields
id- target account idfollowing- whether the user is currently following the accountfollowed_by- whether the user is currently being followed by the accountblocking- whether the user is currently blocking the accountmuting- whether the user is currently muting the accountrequested- whether the user has requested to follow the accountdomain_blocking- whether the user is currently blocking the user's domain
Summary
Functions
Block a user
Follow a user
Mute a user
Get the relationships of authenticated user towards given other users
Unblock a user
Unfollow a user
Unmute a user
Types
Functions
@spec block(Hunter.Client.t(), non_neg_integer()) :: t()
Block a user
Parameters
conn- Connection credentialsid- user id
@spec follow(Hunter.Client.t(), non_neg_integer()) :: t()
Follow a user
Parameters
conn- Connection credentialsid- user id
@spec mute(Hunter.Client.t(), non_neg_integer()) :: t()
Mute a user
Parameters
conn- Connection credentialsid- user id
@spec relationships(Hunter.Client.t(), [non_neg_integer()]) :: [t()]
Get the relationships of authenticated user towards given other users
Parameters
conn- connection credentialsid- list of relationship IDs
@spec unblock(Hunter.Client.t(), non_neg_integer()) :: t()
Unblock a user
conn- Connection credentialsid- user id
@spec unfollow(Hunter.Client.t(), non_neg_integer()) :: t()
Unfollow a user
Parameters
conn- Connection credentialsid- user id
@spec unmute(Hunter.Client.t(), non_neg_integer()) :: t()
Unmute a user
Parameters
conn- Connection credentialsid- user id