hunter v0.3.0 Hunter.Report

Report entity

This module defines a Hunter.Report struct and the main functions for working with Reports.

Fields

  • id - The ID of the report
  • action_taken - The action taken in response to the report

Summary

Functions

Retrieve a user’s reports

Types

t()
t() :: %Hunter.Report{action_taken: String.t, id: non_neg_integer}

Functions

report(conn, account_id, status_ids, comment)
report(Hunter.Client.t, non_neg_integer, [non_neg_integer], String.t) :: Hunter.Report.t

Report a user

Parameters

  • conn - connection credentials
  • account_id - the ID of the account to report
  • status_ids - the IDs of statuses to report
  • comment - a comment to associate with the report
reports(conn)

Retrieve a user’s reports

Parameters

  • conn - connection credentials