From 5a11dfe18e0fbb565886a99b04aba56f8647d93a Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 24 May 2021 17:07:10 -0500 Subject: [PATCH] Update and improve documentation for API.get_user --- tweepy/api.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 3e2242c..27c5d3b 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -2398,13 +2398,22 @@ class API: Returns information about the specified user. - :param user_id: |user_id| - :param screen_name: |screen_name| - :param include_entities: |include_entities| + Parameters + ---------- + user_id + |user_id| + screen_name + |screen_name| + include_entities + |include_entities| - :rtype: :class:`User` object + Returns + ------- + :class:`~tweepy.models.User` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-users-show + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-users-show """ return self.request( 'GET', 'users/show', endpoint_parameters=( -- 2.25.1