-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adiciona header User-Agent aos requests feitos pelo SDK (#309)
* client: build user-agent string Implement an user-agent string builder to be user during requests to Pagar.me's API. It'll be usefull to indentify applications requests. Co-authored-by: Murilo Souza <[email protected]> * client: inform user-agent on requests Since a user-agent string is builded, it should be present on every request. It add the builded string to the client. Co-authored-by: Murilo Souza <[email protected]> * client: refactor the code Create a constant for custom user-agent header. Also, refactor the test to work well in different php versions. Co-authored-by: Murilo Souza <[email protected]> * client: avoid php send an undefined index notice Inform a blank user-agent if it's not informed from the client during instantiation * doc: add how to inform custom headers Add how developers could inform custom headers on every request * travis-ci: remove travis-ci config file Remove travis since the project is using circle-ci * refactor: remove irrelevant user_agent property Since the user-agent info won't be used by developers after it sent to sdk, there's no reason to maintain a property on Client class. It removes the property and its getter method and remove tests that was used to validate that.
- Loading branch information
Showing
4 changed files
with
99 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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