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 id
  • following - whether the user is currently following the account
  • followed_by - whether the user is currently being followed by the account
  • blocking - whether the user is currently blocking the account
  • muting - whether the user is currently muting the account
  • requested - whether the user has requested to follow the account
  • domain_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 type

t() View Source
t() :: %Hunter.Relationship{
  blocking: boolean(),
  domain_blocking: boolean(),
  followed_by: boolean(),
  following: boolean(),
  id: non_neg_integer(),
  muting: boolean(),
  requested: boolean()
}

Link to this section Functions

Block a user

Parameters

  • conn - Connection credentials
  • id - user id

Follow a user

Parameters

  • conn - Connection credentials
  • id - user id

Mute a user

Parameters

  • conn - Connection credentials
  • id - user id
Link to this function

relationships(conn, ids) View Source
relationships(Hunter.Client.t(), [non_neg_integer()]) :: [
  Hunter.Relationship.t()
]

Get the relationships of authenticated user towards given other users

Parameters

  • conn - connection credentials
  • id - list of relationship IDs

Unblock a user

  • conn - Connection credentials
  • id - user id

Unfollow a user

Parameters

  • conn - Connection credentials
  • id - user id

Unmute a user

Parameters

  • conn - Connection credentials
  • id - user id