discgolf
is an R client for the Discourse API
Discourse API docs: https://docs.discourse.org/
discgolf package docs: https://sckott.github.io/discgolf/
CRAN version
install.packages("discgolf")
Development version
install.packages("remotes")
remotes::install_github("sckott/discgolf")
The Discourse API is based on using a specific installation of Discourse, which requires the URL of the target Discourse forum, your username and an API key for that installation. Get those, set as option variables in .Rprofile
(use discourse_url
, discourse_username
and discourse_api_key
) or environment variables in .Renviron
(use DISCOURSE_URL
, DISCOURSE_USERNAME
and DISCOURSE_API_KEY
) or similar file (.bashrc
, .zshrc
, etc.).
topics_by("cboettig")
post_get(90)
topic_create("The problem with blue skies", text = "just saying and all that")
post_create(topic_id = 13, text = "There isn't a problem!")
post_wikify(x$post_stream$posts$id[4])
users_list('staff')
users_list('new')
(x <- user_create("jane doe", "jane@doe.com", "jane_doe", "afafasfdasdf"))
user_activate(x$user_id)
user_update_email('jane_doe', 'jane2@doe.com')
user_update_username('jane_doe', 'jane_doe2')
user_delete(x$user_id)