Learn R Programming

academictwitteR (version 0.3.1)

get_retweeted_by: Get users who has retweeted a tweet

Description

This function fetches users who retweeted a tweet

Usage

get_retweeted_by(
  x,
  bearer_token = get_bearer(),
  data_path = NULL,
  verbose = TRUE
)

Arguments

x

string containing one tweet id or a vector of tweet ids

bearer_token

string, bearer token

data_path

string, if supplied, fetched data can be saved to the designated path as jsons

verbose

If FALSE, query progress messages are suppressed

Value

a data frame

Examples

Run this code
# NOT RUN {
tweets <- c("1392887366507970561","1409931481552543749")
get_retweeted_by(tweets, bearer_token = get_bearer())
# }

Run the code above in your browser using DataLab