Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php // Copyright ⓒ 2018 Magneds IP B.V. - All Rights Reserved |
||
44 | public function send(RequestInterface $request) |
||
45 | { |
||
46 | $method = $request->getMethod(); |
||
47 | $uri = $request->getURI(); |
||
48 | |||
49 | $options = [ |
||
50 | 'query' => ['api_token' => $this->apiKey], |
||
51 | 'form_params' => array_merge(['api_token' => $this->apiKey], $request->getBody()), |
||
52 | 'idn_conversion' => false |
||
53 | ]; |
||
54 | |||
55 | $response = $this->client->request( |
||
56 | $method, |
||
57 | $uri, |
||
58 | $options |
||
59 | ); |
||
60 | |||
61 | return $request->handleResponse($response); |
||
62 | } |
||
64 |