post_user | R Documentation |
Perform actions on an account
post_user(id, action = "follow", comment = "", token = NULL, verbose = TRUE)
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 |
no return value, called for site effects
## Not run:
# follow a user
post_user("xxxxxx", action = "follow")
# unfollow a user
post_user("xxxxxx", action = "unfollow")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.