From caadc4f20166a1d5236d572d206de6609d84a2d3 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 24 May 2021 08:02:21 -0500 Subject: [PATCH] Update and improve documentation for API.lists_subscriptions --- tweepy/api.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 7cddf53..80b4277 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1659,14 +1659,24 @@ class API: Obtain a collection of the lists the specified user is subscribed to, 20 lists per page by default. Does not include the user's own lists. - :param user_id: |user_id| - :param screen_name: |screen_name| - :param count: |count| - :param cursor: |cursor| + Parameters + ---------- + user_id + |user_id| + screen_name + |screen_name| + count + |count| + cursor + |cursor| - :rtype: list of :class:`List` objects + Returns + ------- + :py:class:`List`\ [:class:`~tweepy.models.List`] - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/get-lists-subscriptions + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/get-lists-subscriptions """ return self.request( 'GET', 'lists/subscriptions', endpoint_parameters=( -- 2.25.1