Skip to contents

Follows target Twitter user.

Usage

post_follow(
  user,
  destroy = FALSE,
  mute = FALSE,
  notify = FALSE,
  retweets = TRUE,
  token = NULL
)

post_unfollow_user(user, token = NULL)

post_mute(user, token = NULL)

Arguments

user

Character vector of screen names or user ids. See as_screenname() for more details.

destroy

Logical indicating whether to post (add) or remove (delete) target tweet as favorite.

mute

Logical indicating whether to mute the intended friend (you must already be following this account prior to muting them)

notify

Logical indicating whether to enable notifications for target user. Defaults to false.

retweets

Logical indicating whether to enable retweets for target user. Defaults to true.

token

Expert use only. Use this to override authentication for a single API call. In most cases you are better off changing the default for all calls. See auth_as() for details.

See also

Examples

if (auth_has_default()) {
    post_follow("_R_Foundation")
    post_follow("rtweet_test", mute = TRUE) # Mute
}