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

View source: R/get_timeline.R

get_timelines_v2R Documentation

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

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

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

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

## End(Not run)

MaelKubli/RTwitterV2 documentation built on May 26, 2023, 5:29 p.m.