1 | <?php |
||
8 | class WakatimeClient |
||
9 | { |
||
10 | |||
11 | protected $baseUrl; |
||
12 | |||
13 | protected $client; |
||
14 | |||
15 | protected $apiKey; |
||
16 | |||
17 | public function __construct(Client $client, $baseUrl, $apiKey) |
||
25 | |||
26 | public function setApiKey(string $apiKey) |
||
30 | |||
31 | public function setBaseUrl(string $baseUrl) |
||
35 | |||
36 | public function getApiKey() : string |
||
40 | |||
41 | |||
42 | public function getBaseUrl() : string |
||
46 | |||
47 | |||
48 | public function performRequest(string $resource, array $headers = [], array $query = []) : Collection |
||
55 | |||
56 | protected function buildHeaders(array $headers = []) : array |
||
63 | |||
64 | private function getBase64ApiKey() : string |
||
68 | |||
69 | |||
70 | } |
||
71 |