-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Allow passing of request options and own error handling (#79)
With this change, it is now possible to set options to be passed with the request method on a per callee level. Each client creation is able to accept options, that will be applied to each call to any request function and be respected by Guzzle Requests. The default behaviour will be as before that change. Additionally, the exception handling and the Response wrapping into a SevenShores\Hubspot\Http\Response object can be avoided. So it is possible to care for the error handling in the own application. Again, the default behaviour remains unchanged, the response is wrapped and SevenShores\Hubspot\Exceptions are thrown.
- Loading branch information
1 parent
e5d214c
commit 93df25e
Showing
3 changed files
with
66 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters