hunter v0.5.1 Hunter.Report View Source

Report entity

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

Fields

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

Link to this section Summary

Link to this section Types

Link to this type

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

Link to this section Functions

Link to this function

report(conn, account_id, status_ids, comment) View Source

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

Retrieve a user's reports

Parameters

  • conn - connection credentials