From 6eed1b28c0c604bdfee41a38f2611eca76080321 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 24 May 2021 17:09:45 -0500 Subject: [PATCH] Update and improve documentation for API.destroy_friendship --- tweepy/api.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index fe7aa43..d819e56 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -2457,12 +2457,20 @@ class API: Destroy a friendship with the specified user (aka unfollow). - :param screen_name: |screen_name| - :param user_id: |user_id| + Parameters + ---------- + screen_name + |screen_name| + user_id + |user_id| - :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/post-friendships-destroy + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/post-friendships-destroy """ return self.request( 'POST', 'friendships/destroy', endpoint_parameters=( -- 2.25.1