Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function execute(string $endpoint, array $queryParams): array |
||
16 | { |
||
17 | $queryString = $this->buildRequestParams($queryParams); |
||
18 | |||
19 | $this->addCurlOpt(CURLOPT_URL, $this->credentials->getHost() . $endpoint . '?' . $queryString) |
||
20 | ->addCurlOpt(CURLOPT_CUSTOMREQUEST, EnumHttpMethods::GET); |
||
21 | |||
22 | $this->auth($queryString); |
||
23 | |||
24 | |||
25 | return $this->query(); |
||
|
|||
26 | } |
||
37 |