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)
|
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));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue