v4.5.0
版本发布时间: 2022-01-25 08:53:30
tweepy/tweepy最新发布版本:v4.15.0(2025-01-16 05:15:17)
New Features / Improvements
- Revamp authentication interface
- Add support for OAuth 2.0 Authorization Code Flow with PKCE
- Rename
OAuthHandler
toOAuth1UserHandler
(fb6eb7d)-
OAuthHandler
is kept as a deprecated alias (cba7317)
-
- Rename
AppAuthHandler
toOauth2AppHandler
(529d793)-
AppAuthHandler
is kept as a deprecated alias (d4ceb1a)
-
- Rename
OAuth2Bearer
toOAuth2BearerHandler
(0781fde) - Allow passing access token and secret directly to
OAuth1UserHandler.__init__
(99f3583)- Note, this changes the
callback
parameter to be the fifth argument, positionally
- Note, this changes the
- Allow
OAuth2BearerHandler
to be used asauth
parameter forAPI
(5a2a3fc) - Remove
AuthHandler
(d600c4c) - Remove
OAuth1UserHandler.get_xauth_access_token
(8e2de9f) - Update and improve authentication documentation (f9a722b)
- Other improvements and optimizations
- Add
Client.get_me
(c49cbdf, 62b5b58, f6895d3, bb87b26) - Add support for
Media.url
(#1722) - Use requests exception to handle
JSONDecodeError
(b492b0a)- Update requests dependency requirement to >= 2.27.0 (ed66e8e)
Bug Fixes
- Fix
Response.includes["polls"]
not beingPoll
objects (#1733) - Fix
Paginator
handling ofClient.get_all_tweets_count
(#1761)