This commit is contained in:
Tony Tam
2015-06-25 10:23:05 -07:00

View File

@@ -375,6 +375,9 @@ class PetApi {
$httpBody = $formParams;
}
//TODO support oauth
$apiKey = $this->apiClient->getApiKeyWithPrefix('api_key');
if (isset($apiKey)) {
$headerParams['api_key'] = $apiKey;
@@ -382,9 +385,6 @@ class PetApi {
//TODO support oauth
// make the API Call
try {
$response = $this->apiClient->callAPI($resourcePath, $method,