I am using Guzzle library and I would like to fetch what is request object that is being sent to endpoint, so I can debug some API problems. Not sure how to get it and where?
Using this line to make a request and return data, response object is easily obtainable, what about request?
return $this->client->request('put', $endpoint, $options)