rtweet (version 0.6.0)

get_mentions: Get mentions for the authenticating user.

Description

Returns data on up to 200 of the most recent mentions (Tweets containing a users's screen_name) of the authenticating user.

Usage

get_mentions(n = 200, since_id = NULL, max_id = NULL, parse = TRUE,
  token = NULL, ...)

Arguments

n

Specifies the number of Tweets to try and retrieve, up to a maximum of 200 (the default). The value of count is best thought of as a limit to the number of tweets to return because suspended or deleted content is removed after the count has been applied.

since_id

Returns results with an ID greater than (that is, more recent than) the specified ID. There are limits to the number of Tweets which can be accessed through the API. If the limit of Tweets has occurred since the since_id, the since_id will be forced to the oldest ID available.

max_id

Returns results with an ID less than (that is, older than) or equal to the specified ID.

parse

Logical indicating whether to convert the response object into an R list. Defaults to TRUE.

token

OAuth token. By default token = NULL fetches a non-exhausted token from an environment variable. Find instructions on how to create tokens and setup an environment variable in the tokens vignette (in r, send ?tokens to console).

...

Other arguments passed as parameters in composed API query.

Value

Tibble of mentions data.

Details

The timeline returned is the equivalent of the one seen when you view your mentions on twitter.com. This method can only return up to 800 tweets.

See Also

https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-mentions_timeline

Other tweets: get_favorites, get_timeline, lists_statuses, lookup_statuses, search_tweets, tweets_data, tweets_with_users

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
## get most recent 200 mentions of authenticating user
mymentions <- get_mentions()

## view data
mymentions

# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace