From 145d7cfb902ed7bd10143e201ea89af41ba7d628 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 17 Jun 2021 17:29:36 -0500 Subject: [PATCH] Remove API.configuration https://twittercommunity.com/t/retiring-the-1-1-configuration-endpoint/153319 https://twittercommunity.com/t/is-the-1-1-configuration-endpoint-retired/155211 Resolves #1614 --- docs/api.rst | 11 ----------- tweepy/api.py | 24 ------------------------ 2 files changed, 35 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index d620b29..b337881 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -244,10 +244,6 @@ +------------------------------------------+--------------------------------------+ | .. centered:: :ref:`Developer utilities` | +------------------------------------------+--------------------------------------+ - | .. centered:: |Get Twitter configuration details|_ | - +------------------------------------------+--------------------------------------+ - | `GET help/configuration`_ | :meth:`API.configuration` | - +------------------------------------------+--------------------------------------+ | .. centered:: |Get Twitter supported languages|_ | +------------------------------------------+--------------------------------------+ | `GET help/languages`_ | :meth:`API.supported_languages` | @@ -361,8 +357,6 @@ .. |Get places near a location| replace:: *Get places near a location* .. _GET geo/reverse_geocode: https://developer.twitter.com/en/docs/twitter-api/v1/geo/places-near-location/api-reference/get-geo-reverse_geocode .. _GET geo/search: https://developer.twitter.com/en/docs/twitter-api/v1/geo/places-near-location/api-reference/get-geo-search -.. |Get Twitter configuration details| replace:: *Get Twitter configuration details* -.. _GET help/configuration: https://developer.twitter.com/en/docs/twitter-api/v1/developer-utilities/configuration/api-reference/get-help-configuration .. |Get Twitter supported languages| replace:: *Get Twitter supported languages* .. _GET help/languages: https://developer.twitter.com/en/docs/twitter-api/v1/developer-utilities/supported-languages/api-reference/get-help-languages .. |Get app rate limit status| replace:: *Get app rate limit status* @@ -617,11 +611,6 @@ Get places near a location Developer utilities =================== -Get Twitter configuration details ---------------------------------- - -.. automethod:: API.configuration - Get Twitter supported languages ------------------------------- diff --git a/tweepy/api.py b/tweepy/api.py index 1e4e4a3..61b0fd1 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3886,30 +3886,6 @@ class API: ), **kwargs ) - # Get Twitter configuration details - - @payload('json') - def configuration(self, **kwargs): - """configuration() - - Returns the current configuration used by Twitter including twitter.com - slugs which are not usernames, maximum photo resolutions, and t.co - shortened URL length. - - It is recommended applications request this endpoint when they are - loaded, but no more than once a day. - - Returns - ------- - :class:`dict` - JSON - - References - ---------- - https://developer.twitter.com/en/docs/twitter-api/v1/developer-utilities/configuration/api-reference/get-help-configuration - """ - return self.request('GET', 'help/configuration', **kwargs) - # Get Twitter supported languages @payload('json') -- 2.25.1