Update AbstractApi.php
This commit is contained in:
parent
074adbbd91
commit
b2152be0c8
1 changed files with 24 additions and 0 deletions
|
|
@ -29,4 +29,28 @@ abstract class AbstractApi implements ApiInterface
|
||||||
'api_key' => $this->client->getHttpClient()->getOptions()['key']
|
'api_key' => $this->client->getHttpClient()->getOptions()['key']
|
||||||
], $parameters));
|
], $parameters));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $parameters
|
||||||
|
* @return mixed
|
||||||
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||||
|
*/
|
||||||
|
protected function put($parameters)
|
||||||
|
{
|
||||||
|
return $this->client->getHttpClient()->put(array_merge([
|
||||||
|
'api_key' => $this->client->getHttpClient()->getOptions()['key']
|
||||||
|
], $parameters));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $parameters
|
||||||
|
* @return mixed
|
||||||
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||||
|
*/
|
||||||
|
protected function delete($parameters)
|
||||||
|
{
|
||||||
|
return $this->client->getHttpClient()->delete(array_merge([
|
||||||
|
'api_key' => $this->client->getHttpClient()->getOptions()['key']
|
||||||
|
], $parameters));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue