Added
- Support 202 "Accepted" HTTP responses.
Fixed
- The expected HTTP response status code for a request made with the proper credentials to api/v1/revoke_token has been changed from 204 to 200.
Added
- Add a
URITooLargeexception. - :class:`.ScriptAuthorizer` has a new parameter ``two_factor_callback `` that supplies OTPs (One-Time Passcodes) when :meth:`.ScriptAuthorizer.refresh` is called.
- Add a
TooManyRequestsexception.
Fixed
- Fix
RuntimeWarningwhen executing pre/post refresh token callbacks.
Added
Authorizeroptionally takes apre_refresh_callbackkeyword argument. If provided, the function will called with the instance ofAuthorizerprior to refreshing the access and refresh tokens.Authorizeroptionally takes apost_refresh_callbackkeyword argument. If provided, the function will called with the instance ofAuthorizerafter refreshing the access and refresh tokens.
Changed
- The
refresh_tokenargument toAuthorizermust now be passed by keyword, and cannot be passed as a positional argument.
Changed
- Improved preprocessing for
dataandparamsinSession.request().
Changed
- Added preprocessing for
dataandparamsinasyncprawcore.Session.request()for compatibility withaiohttp.
Fixed
- Keys with a
Nonevalue in thedataorparamsparameters forasyncprawcore.Session.request()are now dropped asaiohttp.ClientSession.request()does not acceptNonevalues indataandparams. - Keys with a boolean value in the
paramsparameter forasyncprawcore.Session.request()are now casted to a string asaiohttp.ClientSession.request()does not accept boolean values inparams.
Fixed
- How files are handled.
datais now able to be passed withfilessince asyncpraw can make requests with both parameters. - Fixed
SpecialExceptionnot able to getresponse.json()since it is a coroutine.
Fixed
- Documentation errors.
authorize_urlwill correctly return astrinstead ofyarl.URL().
- Converted from
requeststoaiohttpfor asynchronous operation. - Updated upto version 1.4.0 of prawcore.
- Forked from praw-dev/prawcore