Currently we have send*() methods in CloudApiClient that wrap the request sending. We should explore removing these methods in favor of passing a request to the constructor of the response objects and having the response execute the request and get the format that it expects.
Currently we have send*() methods in CloudApiClient that wrap the request sending. We should explore removing these methods in favor of passing a request to the constructor of the response objects and having the response execute the request and get the format that it expects.
See the https://github.com/cpliakas/bigoven-php repository, specifically https://github.com/cpliakas/bigoven-php/blob/master/src/BigOven/Response/Response.php#L30 for an example.