🗿 Fixes issue where the default request headers (Accept: application/json and Content-Type: application/json) would be discarded when setting the Authorization header for a request. This is because Guzzle only applies the values set in the defaults array when the request doesn't have a value for that option.
💻 Use the v2/clients endpoint rather than v1/keys for listing OAuth clients. Also fixes two incorrect docblocks for method return types.
Changes
🗿 Fixes issue where the default request headers (
Accept: application/json
andContent-Type: application/json
) would be discarded when setting theAuthorization
header for a request. This is because Guzzle only applies the values set in thedefaults
array when the request doesn't have a value for that option.💻 Use the
v2/clients
endpoint rather thanv1/keys
for listing OAuth clients. Also fixes two incorrect docblocks for method return types.For review: @angaither