Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function sendData($data) |
||
24 | { |
||
25 | $result = $this->httpClient->request( |
||
26 | 'POST', |
||
27 | $this->getEndpoint() . $this->resource, |
||
28 | [ |
||
29 | 'Authorization' => 'Bearer ' . $this->getPassword(), |
||
30 | 'Content-Type' => 'application/json; charset=utf-8', |
||
31 | 'Accept' => 'application/problem+json; q=1.0, application/json; q=0.9', |
||
32 | ], |
||
33 | json_encode($data) |
||
34 | ); |
||
35 | |||
36 | return $this->response = new Response( |
||
37 | $this, |
||
38 | $result->getBody()->getContents() |
||
39 | ); |
||
42 |