post_user function

Perform actions on an account

Perform actions on an account

post_user(id, action = "follow", comment = "", token = NULL, verbose = TRUE)

Arguments

  • id: character, user id to perform the action on
  • action: character, one of "(un)follow","(un)block", "(un)mute", "(un)pin","note"
  • comment: 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.
  • token: user bearer token (read from file by default)
  • verbose: logical whether to display messages

Returns

no return value, called for site effects

Examples

## Not run: # follow a user post_user("xxxxxx", action = "follow") # unfollow a user post_user("xxxxxx", action = "unfollow") ## End(Not run)
  • Maintainer: David Schoch
  • License: MIT + file LICENSE
  • Last published: 2024-10-30