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