View source: R/post-favorite.R
post_favorite | R Documentation |
Favorites target status id.
post_favorite( status_id, destroy = FALSE, include_entities = FALSE, token = NULL )
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 |
Create: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-favorites-create Destroy: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-favorites-destroy
Other post:
post_follow()
,
post_friendship()
,
post_tweet()
if (auth_has_default()) { rt <- search_tweets("#rstats", n = 1) post_favorite(rt$id_str) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.