Document Response
authorHarmon <Harmon758@gmail.com>
Tue, 13 Apr 2021 02:06:16 +0000 (21:06 -0500)
committerHarmon <Harmon758@gmail.com>
Tue, 13 Apr 2021 02:06:16 +0000 (21:06 -0500)
docs/client.rst
tweepy/client.py

index dcbc1d5dba81dd93d98d79be02188b15ae8b293a..1dd2d5f556e88d6290ec0322a3c619239044edf5 100644 (file)
@@ -190,3 +190,11 @@ user data objects.
 .. _poll fields: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/poll
 .. _Tweet fields: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/tweet
 .. _user fields: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/user
+
+.. _response_reference:
+
+``Response``
+============
+The :obj:`Response` returned by :class:`Client` methods is a
+:class:`collections.namedtuple`, with ``data``, ``includes``, ``errors``, and
+``meta`` fields, corresponding with the fields in responses from Twitter's API.
index 418a6659589ac3bfb04567bc411af93b10ac9dc2..7befd5625c2e98ea2cb1710be009fee2f429ab36 100644 (file)
@@ -286,7 +286,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -376,7 +376,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -480,7 +480,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -588,7 +588,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -638,7 +638,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -682,7 +682,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -712,7 +712,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -756,7 +756,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -804,7 +804,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -835,7 +835,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -880,7 +880,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------
@@ -939,7 +939,7 @@ class Client:
 
         Returns
         -------
-        Response
+        :ref:`response_reference`
 
         References
         ----------