post_favorite: Favorites target status id.

Description Usage Arguments See Also Examples

View source: R/post.R

Description

Favorites target status id.

Usage

1
2
3
4
5
6
post_favorite(
  status_id,
  destroy = FALSE,
  include_entities = FALSE,
  token = NULL
)

Arguments

status_id

Status id of target tweet.

destroy

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

include_entities

Logical indicating whether to include entities object in return.

token

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

See Also

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

Examples

1
2
3
4
5
## Not run: 
rt <- search_tweets("rstats")
r <- lapply(rt$user_id, post_favorite)

## End(Not run)

rtweet documentation built on Jan. 11, 2020, 9:11 a.m.