powered by
Favorites target status id.
post_favorite( status_id, destroy = FALSE, include_entities = FALSE, token = NULL )
Status id of target tweet.
Logical indicating whether to post (add) or remove (delete) target tweet as favorite.
Logical indicating whether to include entities object in return.
OAuth token. By default token = NULL fetches a non-exhausted token from an environment variable tokens.
token = NULL
Other post: post_follow(), post_friendship(), post_tweet()
post_follow()
post_friendship()
post_tweet()
if (FALSE) { rt <- search_tweets("rstats") r <- lapply(rt$user_id, post_favorite) }
Run the code above in your browser using DataLab