powered by
Perform actions on an account
post_user(id, action = "follow", comment = "", token = NULL, verbose = TRUE)
no return value, called for site effects
character, user id to perform the action on
character, one of "(un)follow","(un)block", "(un)mute", "(un)pin","note"
character (if action="note"), The comment to be set on that user. Provide an empty string or leave out this parameter to clear the currently set note.
user bearer token (read from file by default)
logical whether to display messages
if (FALSE) { # follow a user post_user("xxxxxx", action = "follow") # unfollow a user post_user("xxxxxx", action = "unfollow") }
Run the code above in your browser using DataLab