Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function execute($params) |
||
19 | { |
||
20 | $this->method = array_shift($params); |
||
21 | |||
22 | return $this->httpClient |
||
23 | ->setMethod('post') |
||
24 | ->setEndPoint(static::ENDPOINT.$this->method.'/') |
||
25 | ->authHeaders() |
||
26 | ->addHeader([ 'Content-Type' => 'application/json' ]) |
||
27 | ->setParams($this->prepare($params)) |
||
28 | ->send(); |
||
29 | } |
||
30 | |||
36 |