From: Harmon Date: Wed, 2 Jun 2021 23:53:48 +0000 (-0500) Subject: Rename API.friendships_incoming to API.incoming_friendships X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=007bd07536d1e0dfd5a5b5967943acffb77f24f4;p=tweepy.git Rename API.friendships_incoming to API.incoming_friendships --- diff --git a/docs/api.rst b/docs/api.rst index c9a303f..4e26584 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -118,7 +118,7 @@ +------------------------------------------+--------------------------------------+ | `GET friends/list`_ | :meth:`API.friends` | +------------------------------------------+--------------------------------------+ - | `GET friendships/incoming`_ | :meth:`API.friendships_incoming` | + | `GET friendships/incoming`_ | :meth:`API.incoming_friendships` | +------------------------------------------+--------------------------------------+ | `GET friendships/lookup`_ | :meth:`API.lookup_friendships` | +------------------------------------------+--------------------------------------+ @@ -478,7 +478,7 @@ Follow, search, and get users .. automethod:: API.friends -.. automethod:: API.friendships_incoming +.. automethod:: API.incoming_friendships .. automethod:: API.lookup_friendships diff --git a/tweepy/api.py b/tweepy/api.py index 5c3e7af..3d0a3fc 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -2170,8 +2170,8 @@ class API: @pagination(mode='cursor') @payload('ids') - def friendships_incoming(self, **kwargs): - """friendships_incoming(*, cursor, stringify_ids) + def incoming_friendships(self, **kwargs): + """incoming_friendships(*, cursor, stringify_ids) Returns a collection of numeric IDs for every user who has a pending request to follow the authenticating user.