acquia / acquia-sdk-php

The Acquia SDK for PHP allows developers to build applications on top of Acquia services.
MIT License
25 stars 20 forks source link

Rethink the send*() methods in CloudApiClient #18

Closed cpliakas closed 10 years ago

cpliakas commented 10 years ago

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.

cpliakas commented 10 years ago

Merged in branch.