From 97eb1f1821cfd5ec21293417fecf84c01bf8718e Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 24 May 2021 16:56:11 -0500 Subject: [PATCH] Update and improve documentation for API.lookup_friendships --- tweepy/api.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 703d29b..6b03582 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -2201,14 +2201,20 @@ class API: Returns the relationships of the authenticated user to the list of up to 100 screen_name or user_id provided. - :param screen_name: A list of screen names, up to 100 are allowed in a - single request. - :param user_id: A list of user IDs, up to 100 are allowed in a single - request. + Parameters + ---------- + screen_name + A list of screen names, up to 100 are allowed in a single request. + user_id + A list of user IDs, up to 100 are allowed in a single request. - :rtype: list of :class:`Relationship` objects + Returns + ------- + :py:class:`List`\ [:class:`~tweepy.models.Relationship`] - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friendships-lookup + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friendships-lookup """ return self.request( 'GET', 'friendships/lookup', endpoint_parameters=( -- 2.25.1