Learn R Programming

rtweet (version 1.2.1)

post_friendship: Updates friendship notifications and retweet abilities.

Description

Updates friendship notifications and retweet abilities.

Usage

post_friendship(user, device = FALSE, retweets = FALSE, token = NULL)

Arguments

user

Character vector of screen names or user ids. See as_screenname() for more details.

device

Logical indicating whether to enable or disable device notifications from target user behaviors. Defaults to false.

retweets

Logical indicating whether to enable or disable retweets from target user behaviors. Defaults to false.

token

Use this to override authentication for a single API call. In many cases you are better off changing the default for all calls. See auth_as() for details.

References

https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/post-friendships-update

See Also

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