Skip to content

4.5.0

Compare
Choose a tag to compare
@Harmon758 Harmon758 released this 25 Jan 00:53
· 303 commits to master since this release
ab27d28

New Features / Improvements

  • Revamp authentication interface
    • Add support for OAuth 2.0 Authorization Code Flow with PKCE
    • Rename OAuthHandler to OAuth1UserHandler (fb6eb7d)
      • OAuthHandler is kept as a deprecated alias (cba7317)
    • Rename AppAuthHandler to Oauth2AppHandler (529d793)
      • AppAuthHandler is kept as a deprecated alias (d4ceb1a)
    • Rename OAuth2Bearer to OAuth2BearerHandler (0781fde)
    • Allow passing access token and secret directly to OAuth1UserHandler.__init__ (99f3583)
      • Note, this changes the callback parameter to be the fifth argument, positionally
    • Allow OAuth2BearerHandler to be used as auth parameter for API (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 being Poll objects (#1733)
  • Fix Paginator handling of Client.get_all_tweets_count (#1761)

Misc

  • Improve and optimize Model.__getstate__ (#1707)
  • Add API v2 examples to documentation (bbdbb7b)
  • Update and improve various documentation