1 | <?php |
||
16 | class Api |
||
17 | { |
||
18 | /** @var Client */ |
||
19 | protected $client; |
||
20 | /** @var ResponseTransformer */ |
||
21 | protected $transformer; |
||
22 | /** @var string */ |
||
23 | private $version = 'v3'; |
||
24 | private $endpoint = '/'; |
||
25 | |||
26 | /** |
||
27 | * Api constructor. |
||
28 | * @param Client $client |
||
29 | */ |
||
30 | 28 | public function __construct(Client $client) |
|
35 | |||
36 | /** |
||
37 | * @param string $method |
||
38 | * @param string $uri |
||
39 | * @param array $options |
||
40 | * @param bool|null $needSequence |
||
41 | * @return array |
||
42 | * @throws GuzzleException |
||
43 | * @throws TransformResponseException |
||
44 | */ |
||
45 | 25 | public function rest(string $method, string $uri, array $options = [], ?bool $needSequence = null): array |
|
53 | } |