Returns full Tweet objects for up to 100 Tweets per request, specified
by the ``id`` parameter.
+ .. deprecated:: 4.15.0
+ `The Twitter API v1.1 statuses/lookup endpoint that this method
+ uses has been deprecated and has a retirement date of November 20,
+ 2023.`_ The Twitter API v2 replacement is
+ :meth:`Client.get_tweets`.
+
.. versionchanged:: 4.0
Renamed from ``API.statuses_lookup``
References
----------
https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-lookup
+
+ .. _The Twitter API v1.1 statuses/lookup endpoint that this method uses
+ has been deprecated and has a retirement date of November 20,
+ 2023.: https://twittercommunity.com/t/x-api-v2-migration/203391
"""
return self.request(
'GET', 'statuses/lookup', endpoint_parameters=(
Returns a single status specified by the ID parameter.
+ .. deprecated:: 4.15.0
+ `The Twitter API v1.1 statuses/show endpoint that this method uses
+ has been deprecated and has a retirement date of November 20,
+ 2023.`_ The Twitter API v2 replacement is :meth:`Client.get_tweet`.
+
Parameters
----------
id:
References
----------
https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-show-id
+
+ .. _The Twitter API v1.1 statuses/show endpoint that this method uses
+ has been deprecated and has a retirement date of November 20,
+ 2023.: https://twittercommunity.com/t/x-api-v2-migration/203391
"""
return self.request(
'GET', 'statuses/show', endpoint_parameters=(
Destroy the status specified by the ``id`` parameter. The authenticated
user must be the author of the status to destroy.
+ .. deprecated:: 4.15.0
+ `The Twitter API v1.1 statuses/destroy endpoint that this method
+ uses has been deprecated and has a retirement date of November 20,
+ 2023.`_ The Twitter API v2 replacement is
+ :meth:`Client.delete_tweet`.
+
Parameters
----------
id
References
----------
https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-destroy-id
+
+ .. _The Twitter API v1.1 statuses/destroy endpoint that this method
+ uses has been deprecated and has a retirement date of November 20,
+ 2023.: https://twittercommunity.com/t/x-api-v2-migration/203391
"""
return self.request(
'POST', f'statuses/destroy/{id}', endpoint_parameters=(
Retweets a Tweet. Requires the ID of the Tweet you are retweeting.
+ .. deprecated:: 4.15.0
+ `The Twitter API v1.1 statuses/retweet endpoint that this method
+ uses has been deprecated and has a retirement date of November 20,
+ 2023.`_ The Twitter API v2 replacement is :meth:`Client.retweet`.
+
Parameters
----------
id
References
----------
https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-retweet-id
+
+ .. _The Twitter API v1.1 statuses/retweet endpoint that this method
+ uses has been deprecated and has a retirement date of November 20,
+ 2023.: https://twittercommunity.com/t/x-api-v2-migration/203391
"""
return self.request(
'POST', f'statuses/retweet/{id}', endpoint_parameters=(
Untweets a retweeted status. Requires the ID of the retweet to
unretweet.
+ .. deprecated:: 4.15.0
+ `The Twitter API v1.1 statuses/unretweet endpoint that this method
+ uses has been deprecated and has a retirement date of November 20,
+ 2023.`_ The Twitter API v2 replacement is
+ :meth:`Client.unretweet`.
+
Parameters
----------
id
References
----------
https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-unretweet-id
+
+ .. _The Twitter API v1.1 statuses/unretweet endpoint that this method
+ uses has been deprecated and has a retirement date of November 20,
+ 2023.: https://twittercommunity.com/t/x-api-v2-migration/203391
"""
return self.request(
'POST', f'statuses/unretweet/{id}', endpoint_parameters=(
the user reaches the current allowed limit this method will return an
HTTP 403 error.
+ .. deprecated:: 4.15.0
+ `The Twitter API v1.1 statuses/update endpoint that this method
+ uses has been deprecated and has a retirement date of November 20,
+ 2023.`_ The Twitter API v2 replacement is
+ :meth:`Client.create_tweet`.
+
Parameters
----------
status
References
----------
https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-update
+
+ .. _The Twitter API v1.1 statuses/update endpoint that this method
+ uses has been deprecated and has a retirement date of November 20,
+ 2023.: https://twittercommunity.com/t/x-api-v2-migration/203391
"""
if 'media_ids' in kwargs:
kwargs['media_ids'] = list_to_csv(kwargs['media_ids'])
too long will be silently ignored.
.. deprecated:: 3.7.0
- Use :meth:`media_upload` instead.
+ `The Twitter API v1.1 statuses/update_with_media endpoint that this
+ method uses has been deprecated and has a retirement date of
+ November 20, 2023.`_ :meth:`API.media_upload` and
+ :meth:`Client.create_tweet` can be used instead.
.. versionchanged:: 4.0
Renamed from ``API.update_with_media``
References
----------
https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-update_with_media
+
+ .. _The Twitter API v1.1 statuses/update_with_media endpoint that this
+ method uses has been deprecated and has a retirement date of
+ November 20, 2023.:
+ https://twittercommunity.com/t/x-api-v2-migration/203391
"""
with contextlib.ExitStack() as stack:
if file is not None:
authenticating user) are not currently supported on this endpoint.
[#]_\ [#]_
+ .. deprecated:: 4.15.0
+ `The Twitter API v1.1 search/tweets endpoint that this method uses
+ has been deprecated and has a retirement date of September 20,
+ 2023.`_ The Twitter API v2 replacement is
+ :meth:`Client.search_recent_tweets`.
+
.. versionchanged:: 4.0
Renamed from ``API.search``
.. _Twitter's documentation on the standard search API:
https://developer.twitter.com/en/docs/twitter-api/v1/tweets/search/overview
+ .. _The Twitter API v1.1 search/tweets endpoint that this method uses
+ has been deprecated and has a retirement date of September 20,
+ 2023.: https://twittercommunity.com/t/x-api-v2-migration/203391
"""
return self.request(
'GET', 'search/tweets', endpoint_parameters=(
returned by using this API (about being listed in the People Search).
It is only possible to retrieve the first 1000 matches from this API.
+ .. deprecated:: 4.15.0
+ `The Twitter API v1.1 users/search endpoint that this method uses
+ has been deprecated and has a retirement date of September 20,
+ 2023.`_
+
Parameters
----------
q
References
----------
https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-users-search
+
+ .. _The Twitter API v1.1 users/search endpoint that this method uses
+ has been deprecated and has a retirement date of September 20,
+ 2023.: https://twittercommunity.com/t/x-api-v2-migration/203391
"""
return self.request(
'GET', 'users/search', endpoint_parameters=(
of other parameters. For instance, ``lat`` is required if ``long`` is
provided, and vice-versa.
+ .. deprecated:: 4.15.0
+ `The Twitter API v1.1 geo/search endpoint that this method uses has
+ been deprecated and has a retirement date of September 20, 2023.`_
+
.. versionchanged:: 4.0
Renamed from ``API.geo_search``
References
----------
https://developer.twitter.com/en/docs/twitter-api/v1/geo/places-near-location/api-reference/get-geo-search
+
+ .. _The Twitter API v1.1 geo/search endpoint that this method uses has
+ been deprecated and has a retirement date of September 20, 2023.:
+ https://twittercommunity.com/t/x-api-v2-migration/203391
"""
return self.request(
'GET', 'geo/search', endpoint_parameters=(