Learn R Programming

rtweet (version 0.7.0)

post_follow: Follows target twitter user.

Description

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

Screen name or user id of target user.

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

OAuth token. By default token = NULL fetches a non-exhausted token from an environment variable tokens.

See Also

Other post: post_favorite(), post_friendship(), post_tweet()

Examples

Run this code
if (FALSE) {
post_follow("BarackObama")
}

Run the code above in your browser using DataLab