discourse_api v0.1.0 DiscourseApi.DefaultImpl

Http client for discourse_api

Link to this section Summary

Link to this section Functions

Link to this function

get_active_user(options)

get_active_user(map()) :: {:ok | :error, map()}
Link to this function

get_user_by_external_id(external_id)

get_user_by_external_id(String.t()) :: {:ok | :error, map()}
Link to this function

put(endpoint, payload \\ "")

Link to this function

silence(id, silenced_till, reason, post_action)

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

unsilence(id)

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