Filestack\Mixins\CommonMixin::handleResponseDecodeJson
Handles a response. decode and return json if 200, throws exception otherwise.
Signature
protected function handleResponseDecodeJson(Response
$response )
Parameters
$response
— object- the response object
Returns
- array
- (decoded json)
Errors/Exceptions
-
FilestackException
- if statuscode is not OK