get_timelines_v2: This function allows you to collect up to the last 3200...

Description Usage Arguments Value Examples

View source: R/get_timeline.R

Description

This function allows you to collect up to the last 3200 tweets from a users timeline from twitter with the users user_id

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
get_timelines_v2(
  token = NA,
  user_id = "",
  tweet_fields = "ALL",
  user_fields = "ALL",
  expansions = "ALL",
  place_fields = "ALL",
  poll_fields = "NONE",
  n = 100,
  JSON = FALSE
)

Arguments

token

string of the bearer token from your personal twitter API access

user_id

string of the users id from the user of which you would like to get the timeline from

tweet_fields

string which defaults to ALL (no other argument accepted at the moment)

user_fields

string which defaults to ALL (no other argument accepted at the moment)

expansions

string which defaults to ALL (no other argument accepted at the moment)

place_fields

string which defaults to ALL (no other argument accepted at the moment)

poll_fields

string which defaults to NONE (no other argument accepted at the moment)

n

integer representing the last n tweets to get from the timeline (maximum is 3200 and default is 100)

JSON

boolean which defaults to FALSE (no other argument accepted at the moment)

Value

a data frame

Examples

1
2
3
4
## Not run: 
users <- get_timelines_v2(token=bearer_token, user_id = "2244994945", n = 100)

## End(Not run)

jncib/RTwitterV2 documentation built on Dec. 21, 2021, 1:14 a.m.