@@ 19-25 (lines=7) @@ | ||
16 | private $client; |
|
17 | private $options; |
|
18 | ||
19 | public function __construct(ClientInterface $client, $api_key) |
|
20 | { |
|
21 | $this->client = $client; |
|
22 | $this->options = [ |
|
23 | 'headers' => ['Authorization' => 'Bearer ' . $api_key] |
|
24 | ]; |
|
25 | } |
|
26 | ||
27 | /** |
|
28 | * {@inheritdoc} |
@@ 20-29 (lines=10) @@ | ||
17 | private $client; |
|
18 | private $options; |
|
19 | ||
20 | public function __construct(ClientInterface $client, $api_key) |
|
21 | { |
|
22 | $this->client = $client; |
|
23 | $this->options = [ |
|
24 | 'headers' => [ |
|
25 | 'Authorization' => 'Bearer ' . $api_key, |
|
26 | 'Content-Type' => 'application/json', |
|
27 | ], |
|
28 | ]; |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * {@inheritdoc} |