discourse_api v0.1.4 DiscourseApi.DefaultImpl

Http client for discourse_api

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)

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

get_sso_email(username)

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

get_user_by_id(id)

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

put(endpoint, payload \\ "", headers \\ headers(:multipart))

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