removed apikey from parameters in the abstractapi
This commit is contained in:
parent
e79dbad95c
commit
aa440c9a76
1 changed files with 4 additions and 12 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue