Learn R Programming

rtweet (version 0.6.9)

lookup_friendships: Lookup friendship information between two specified users.

Description

Gets information on friendship between two Twitter users.

Usage

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