You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stop_for_status(), warn_for_status() and (new) message_for_status()
replace message argument with new task argument that optionally describes
the current task. This allows API wrappers to provide more informative
error messages on failure (#277, #302). stop_for_status() and warn_for_status() return the response if there were no errors. This
makes them easier to use in pipelines (#278).
url_ok() and url_successful() have been deprecated in favour of the more
flexible http_error(), which works with urls, responses and integer status
codes (#299).
OAuth
oauth1.0_token() gains RSA-SHA1 signature support with the private_key
argument (@nathangoulding, #316).
oauth2.0_token() throws an error if it fails to get an access token (#250)
and gains two new arguments:
user_params allows you to pass arbitrary additional parameters to the
token access endpoint when acquiring or refreshing a token
(@cornf4ke, #312)
use_basic_auth allows you to pick use http authentication when
getting a token (#310, @grahamrp).
oauth_service_token() checks that its arguments are the correct types
(#282) and anways returns a request object (#313, @nathangoulding).
refresh_oauth2.0() checks for known OAuth2.0 errors and clears the
locally cached token in the presense of any (@nathangoulding, #315).
Bug fixes and minor improvements
httr no longer bundles cacert.pem, and instead it relies on the bundle in
openssl. This bundle is only used a last-resort on windows with R <3.2.0.
Switch to 'openssl' package for hashing, hmac, signatures, and base64.