hunter v0.5.1 Hunter.Relationship View Source
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
Link to this section 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
Link to this section Types
Link to this section Functions
Link to this function
block(conn, id)
View Source
block(conn, id)
View Source
block(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
block(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
Block a user
Parameters
conn
- Connection credentialsid
- user id
Link to this function
follow(conn, id)
View Source
follow(conn, id)
View Source
follow(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
follow(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
Follow a user
Parameters
conn
- Connection credentialsid
- user id
Link to this function
mute(conn, id)
View Source
mute(conn, id)
View Source
mute(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
mute(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
Mute a user
Parameters
conn
- Connection credentialsid
- user id
Link to this function
relationships(conn, ids)
View Source
relationships(conn, ids)
View Source
relationships(Hunter.Client.t(), [non_neg_integer()]) :: [
Hunter.Relationship.t()
]
relationships(Hunter.Client.t(), [non_neg_integer()]) :: [ Hunter.Relationship.t() ]
Get the relationships of authenticated user towards given other users
Parameters
conn
- connection credentialsid
- list of relationship IDs
Link to this function
unblock(conn, id)
View Source
unblock(conn, id)
View Source
unblock(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
unblock(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
Unblock a user
conn
- Connection credentialsid
- user id
Link to this function
unfollow(conn, id)
View Source
unfollow(conn, id)
View Source
unfollow(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
unfollow(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
Unfollow a user
Parameters
conn
- Connection credentialsid
- user id
Link to this function
unmute(conn, id)
View Source
unmute(conn, id)
View Source
unmute(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
unmute(Hunter.Client.t(), non_neg_integer()) :: Hunter.Relationship.t()
Unmute a user
Parameters
conn
- Connection credentialsid
- user id