You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, this package will return the body of a response as either a deserialized JSON object or a SimpleXMLElement object.
There might be times, when you would rather handle this differently. To do this, simply use any format other than 'json' or 'xml' and the code will return a Guzzle response object.
This is actually not the case. If you pass ['format' => 'none'], the formatter gets set to an instance of BaseFormatter, which returns (string) $response->getBody(). So I don't currently see a way to get the raw Guzzle response.
It would be nice if this actually worked the way the docs describe. I'm trying to download large files from Salesforce and would prefer to get back a guzzle response stream rather than the entire contents of the file as a string in memory.
The text was updated successfully, but these errors were encountered:
The docs mention:
Raw response output
By default, this package will return the body of a response as either a deserialized JSON object or a SimpleXMLElement object.
There might be times, when you would rather handle this differently. To do this, simply use any format other than 'json' or 'xml' and the code will return a Guzzle response object.
This is actually not the case. If you pass
['format' => 'none']
, the formatter gets set to an instance ofBaseFormatter
, which returns(string) $response->getBody()
. So I don't currently see a way to get the raw Guzzle response.It would be nice if this actually worked the way the docs describe. I'm trying to download large files from Salesforce and would prefer to get back a guzzle response stream rather than the entire contents of the file as a string in memory.
The text was updated successfully, but these errors were encountered: