It's basic auth https://laravel.com/docs/9.x/http-client#authentication
Jul 13, 2022
3
Level 7
How would I turn this curl request into a guzzle request?
How do I turn this curl request into a guzzle one that I can use in my laravel app?
curl -X GET -H "Content-Type: application/json" --user 9f881e5ac6bfdfc7f54244aab:905a12c https://yourdomain.something.com/api/v1/markcomplet
With required parameters 'user_id' and 'course_id'
I'm assuming -X is the request type, -H is the header, but what do I do with --user? This is where my API key goes..
Thanks for any assistance.
Please or to participate in this conversation.