user_self {rtweet} | R Documentation |
Tweets from a user
Description
Looks up tweets posted by a user.
Usage
user_self(
expansions = NULL,
fields = NULL,
...,
token = NULL,
parse = TRUE,
verbose = FALSE
)
Arguments
expansions |
Set |
fields |
Set |
... |
Other arguments passed to the API. |
token |
These endpoints only accept a bearer token (can be created via
|
parse |
If |
verbose |
A logical value to provide more information about paginated queries. |
Value
A data.frame with the id, name and username of the authenticated user.
Other information depends on the expansions
and fields
requested.
Accepted values are:
Expansions:
set_expansions(tweet = NULL, list = NULL)
.Fields:
set_fields(media = NULL, poll = NULL, place = NULL)
References
https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me
Examples
if (FALSE) {
me <- user_self()
}