1 | <?php |
||
22 | class HttpClient implements HttpClientInterface |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * @var ClientInterface |
||
27 | */ |
||
28 | private $client; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function __construct( |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function get($uri, array $options = []) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function apiRequest($method, $uri, $json = null, array $options = []) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function post($uri, $json, array $options = []) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function put($uri, $json, array $options = []) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function delete($uri, array $options = []) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function attachmentRequest($uri) |
||
92 | |||
93 | } |
||
94 |