discourse_api v0.1.4 DiscourseApi behaviour

Documentation for DiscourseApi.

Link to this section Summary

Link to this section Functions

Link to this function

change_user_email(username, new_email)

Link to this function

get_active_user(options \\ %{})

Link to this function

get_sso_email(username)

Link to this function

get_user_by_external_id(external_id)

Link to this function

get_user_by_id(id)

Link to this function

silence(id, silenced_till, reason, post_action)

Link to this function

unsilence(id)

unsilence(any()) :: any()

Link to this section Callbacks

Link to this callback

change_user_email(arg1, arg2)

change_user_email(String.t(), String.t()) :: {:ok | :error, map()}
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_sso_email(arg1)

get_sso_email(String.t()) :: {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

get_user_by_id(arg1)

get_user_by_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()}