guzzle / guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.
MIT License
253 stars 78 forks source link

Please document how to use middleware with GuzzleClient #162

Open rulatir opened 6 years ago

rulatir commented 6 years ago

StackOverflow question

Please document how to use middlewares with GuzzleClient. I am trying to add a middleware to add an "illegal" query param for cache busting. The way of doing things as documented for working with GuzzleHttp\Client directly doesn't seem to be working with GuzzleClient. Please add a working example.

tlorens commented 5 years ago

I'm able to use kamermans\OAuth2 middleware for authing requests in-flight. Wire up your Guzzle setting the Handler in the Client and pass it along to the GuzzleService().