Skip to content

Commit

Permalink
Add note about new Twitter Developer Apps in AsyncStream documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed May 20, 2022
1 parent dee150a commit 0b0cd98
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tweepy/asynchronous/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ async def on_request_error(self, status_code):
class AsyncStream(AsyncBaseStream):
"""Stream realtime Tweets asynchronously with Twitter API v1.1
.. note::
New Twitter Developer Apps created on or after April 29, 2022 `will not
be able to gain access to v1.1 statuses/sample and v1.1
statuses/filter`_, the Twitter API v1.1 endpoints that
:class:`AsyncStream` uses. Twitter API v2 can be used instead with
:class:`AsyncStreamingClient`.
.. versionadded:: 4.0
Parameters
Expand All @@ -209,6 +217,10 @@ class AsyncStream(AsyncBaseStream):
The task running the stream
user_agent : str
User agent used when connecting to the API
.. _will not be able to gain access to v1.1 statuses/sample and v1.1
statuses/filter: https://twittercommunity.com/t/deprecation-announcement-removing-compliance-messages-from-statuses-filter-and-retiring-statuses-sample-from-the-twitter-api-v1-1/170500
"""

def __init__(self, consumer_key, consumer_secret, access_token,
Expand Down

0 comments on commit 0b0cd98

Please sign in to comment.