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 reportaction_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()
View Source
t() :: %Hunter.Report{action_taken: String.t(), id: non_neg_integer()}
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(conn, account_id, status_ids, comment)
View Source
report(Hunter.Client.t(), non_neg_integer(), [non_neg_integer()], String.t()) ::
Hunter.Report.t()
report(Hunter.Client.t(), non_neg_integer(), [non_neg_integer()], String.t()) :: Hunter.Report.t()
Report a user
Parameters
conn
- connection credentialsaccount_id
- the ID of the account to reportstatus_ids
- the IDs of statuses to reportcomment
- a comment to associate with the report
Link to this function
reports(conn)
View Source
reports(conn)
View Source
reports(Hunter.Client.t()) :: [Hunter.Report.t()]
reports(Hunter.Client.t()) :: [Hunter.Report.t()]
Retrieve a user's reports
Parameters
conn
- connection credentials