Created
March 19, 2020 14:16
-
-
Save bmadigan/9745b2fdb408ac236c87b8900957b99c to your computer and use it in GitHub Desktop.
Larvel 7 HTTP Call Sample
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
Http::withHeaders([ | |
'accept' => 'application/json' | |
]) | |
->withToken('apiKey123') | |
->get('https://some.server.com/api/v1/customers') | |
->json(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment