Mailbox API v1 and PHP SDK v1 are deprecated and being shut down. There is a scenario where to assist with transition, some folks need to be able to specify custom headers when interacting with v1 of the API.
Normally I'd mention the inconsistent spacing but I think the assumption is to do as little work as possible since this is deprecated. Nice solution 😄
Targets a new 1.9.6 release (up from 1.9.5)
Problem
Mailbox API v1 and PHP SDK v1 are deprecated and being shut down. There is a scenario where to assist with transition, some folks need to be able to specify custom headers when interacting with v1 of the API.
Solution
Headers can be specified statically using:
... which will then be appended to all requests to our API. No breaking changes are introduced.