Remove API.configuration
authorHarmon <Harmon758@gmail.com>
Thu, 17 Jun 2021 22:29:36 +0000 (17:29 -0500)
committerHarmon <Harmon758@gmail.com>
Thu, 17 Jun 2021 22:29:36 +0000 (17:29 -0500)
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
tweepy/api.py

index d620b29fb057764b1d6bd95fb0851d15d99a8eef..b337881317819015f293516e17c90856f61e65cc 100644 (file)
     +------------------------------------------+--------------------------------------+
     | .. 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`      |
 .. |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
 -------------------------------
 
index 1e4e4a30c699af7dd685cb85bcc6a676e025b15e..61b0fd1c2dc43b4bf227ee5838c5206b243f49f9 100644 (file)
@@ -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')