Learn R Programming

rtweet (version 2.0.0)

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

If TRUE, the default, returns a tidy data frame. Use FALSE to return the "raw" list corresponding to the JSON returned from the Twitter API.

token

Use this to override authentication for a single API call. In many cases you are better off changing the default for all calls. See auth_as() for details.

References

https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friendships-show

See Also

Other friends: my_friendships()