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