Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | public function send(): string |
||
21 | { |
||
22 | $response = $this->client->request($this->method, $this->url, [ |
||
23 | 'headers' => [ |
||
24 | 'Content-Type' => 'application/json', |
||
25 | ], |
||
26 | 'json' => [ |
||
27 | 'header' => [ |
||
28 | 'username' => $this->credentials['user_code'], |
||
29 | 'password' => $this->credentials['secret'], |
||
30 | 'brandCode' => $this->credentials['brand_code'], |
||
31 | ], |
||
32 | 'body' => [ |
||
33 | 'data' => $this->body, |
||
34 | ], |
||
35 | ], |
||
36 | ]); |
||
37 | |||
38 | return $response->getBody()->getContents(); |
||
39 | } |
||
41 |