discourse_api v0.1.0 DiscourseApi behaviour

Documentation for DiscourseApi.

Link to this section Summary

Link to this section Functions

Link to this function

get_active_user(options \\ %{})

Link to this function

get_user_by_external_id(external_id)

Link to this function

silence(id, silenced_till, reason, post_action)

Link to this section Callbacks

Link to this callback

get_active_user()

get_active_user() :: {atom(), map() | atom()}
Link to this callback

get_active_user(arg1)

get_active_user(map() | nil) :: {atom(), map() | atom()}
Link to this callback

get_user_by_external_id(arg1)

get_user_by_external_id(String.t()) :: {atom(), map() | atom()}
Link to this callback

silence(non_neg_integer, arg2, arg3, arg4)

silence(non_neg_integer(), Date.t(), String.t(), String.t()) ::
  {:ok | :error, map()}
Link to this callback

unsilence(non_neg_integer)

unsilence(non_neg_integer()) :: {:ok | :error, map()}