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

View File

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