From a17754f7808d9dcc857f6a142233b340294c1797 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 27 May 2021 06:37:58 -0500 Subject: [PATCH] Update and improve documentation for API.create_block --- tweepy/api.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) 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=( -- 2.25.1