Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
49 | public function makeRequest(IRequest $request) |
||
50 | { |
||
51 | $options = [ |
||
52 | 'auth' => [ |
||
53 | $this->username, |
||
54 | $this->password |
||
55 | ], |
||
56 | 'headers' => ['content-type' => 'application/json', 'Accept' => 'application/json'], |
||
57 | 'body' => json_encode($request->toArray(), 320) |
||
58 | ]; |
||
59 | return json_decode($this->client->request($request->method(),$this->base_url.$request->path(), $options)->getBody()); |
||
60 | } |
||
62 |