removed apikey from parameters in the abstractapi

This commit is contained in:
Tony Roy 2021-03-12 15:40:42 -04:00
commit aa440c9a76

View file

@ -25,9 +25,7 @@ abstract class AbstractApi implements ApiInterface
*/ */
protected function get($path, $parameters) protected function get($path, $parameters)
{ {
return $this->client->getHttpClient()->get($path, array_merge([ return $this->client->getHttpClient()->get($path, $parameters));
'api_key' => $this->client->getHttpClient()->getOptions()['key']
], $parameters));
} }
/** /**
@ -37,9 +35,7 @@ abstract class AbstractApi implements ApiInterface
*/ */
protected function post($path, $parameters) protected function post($path, $parameters)
{ {
return $this->client->getHttpClient()->post($path, array_merge([ return $this->client->getHttpClient()->post($path, $parameters));
'api_key' => $this->client->getHttpClient()->getOptions()['key']
], $parameters));
} }
/** /**
@ -49,9 +45,7 @@ abstract class AbstractApi implements ApiInterface
*/ */
protected function put($path, $parameters) protected function put($path, $parameters)
{ {
return $this->client->getHttpClient()->put($path, array_merge([ return $this->client->getHttpClient()->put($path, $parameters));
'api_key' => $this->client->getHttpClient()->getOptions()['key']
], $parameters));
} }
/** /**
@ -61,8 +55,6 @@ abstract class AbstractApi implements ApiInterface
*/ */
protected function delete($path, $parameters) protected function delete($path, $parameters)
{ {
return $this->client->getHttpClient()->delete($path, array_merge([ return $this->client->getHttpClient()->delete($path, $parameters));
'api_key' => $this->client->getHttpClient()->getOptions()['key']
], $parameters));
} }
} }