Skip to contents

Favorites target status id.

Usage

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

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()) {
   rt <- search_tweets("#rstats", n = 1)
   post_favorite(rt$id_str)
}