Gets information on friendship between two Twitter users.

lookup_friendships(source, target, parse = TRUE, token = NULL)

Arguments

source

Screen name or user id of source user.

target

Screen name or user id of target user.

parse

Logical indicating whether to return parsed data frame. Defaults to true.

token

Every user should have their own Oauth (Twitter API) token. By default token = NULL this function looks for the path to a saved Twitter token via environment variables (which is what `create_token()` sets up by default during initial token creation). For instruction on how to create a Twitter token see the tokens vignette, i.e., `vignettes("auth", "rtweet")` or see ?tokens.

Value

Data frame converted form returned JSON object. If parse is not true, the HTTP response object is returned instead.

See also

Other friends: my_friendships