From: Harmon Date: Thu, 27 May 2021 11:37:58 +0000 (-0500) Subject: Update and improve documentation for API.create_block X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a17754f7808d9dcc857f6a142233b340294c1797;p=tweepy.git Update and improve documentation for API.create_block --- diff --git a/tweepy/api.py b/tweepy/api.py index 1a626ae..2c7f88d 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3005,14 +3005,24 @@ class API: mentions or timeline (unless retweeted by another user). If a follow or friend relationship exists it is destroyed. - :param screen_name: |screen_name| - :param user_id: |user_id| - :param include_entities: |include_entities| - :param skip_status: |skip_status| + Parameters + ---------- + screen_name + |screen_name| + user_id + |user_id| + include_entities + |include_entities| + skip_status + |skip_status| - :rtype: :class:`User` object + Returns + ------- + :class:`~tweepy.models.User` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/mute-block-report-users/api-reference/post-blocks-create + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/mute-block-report-users/api-reference/post-blocks-create """ return self.request( 'POST', 'blocks/create', endpoint_parameters=(