get_user_v2: This function allows you to collect data about one ore more...

View source: R/get_users.R

get_user_v2R Documentation

This function allows you to collect data about one ore more users on twitter

Description

This function allows you to collect data about one ore more users on twitter

Usage

get_user_v2(
  token = NA,
  user_ids = NA,
  user_names = NA,
  user_fields = "ALL",
  tweet_fields = "author_id",
  expansions = "ALL",
  JSON = FALSE
)

Arguments

token

string of the bearer token from your personal twitter API access

user_ids

string of twitter users ids (multiple ids are separated with a comma)

user_names

string of twitter user names (multiple user names are separated with a comma)

user_fields

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

tweet_fields

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

expansions

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

JSON

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

Value

a data frame

Examples

## Not run: 
users <- get_users_v2(token=bearer_token, user_names = "Twitter,TiwtterDev")

## End(Not run)

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