@@ 51-61 (lines=11) @@ | ||
48 | * |
|
49 | * @return null |
|
50 | */ |
|
51 | public function setClient($key) |
|
52 | { |
|
53 | $this->client = new Client( |
|
54 | [ |
|
55 | 'base_uri' => self::BASE_URI, |
|
56 | 'headers' => [ |
|
57 | 'X-APIKEY' => $key |
|
58 | ] |
|
59 | ] |
|
60 | ); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Return Congress API Guzzle Client |
@@ 51-61 (lines=11) @@ | ||
48 | * |
|
49 | * @return null |
|
50 | */ |
|
51 | public function setClient($key) |
|
52 | { |
|
53 | $this->client = new Client( |
|
54 | [ |
|
55 | 'base_uri' => self::BASE_URI, |
|
56 | 'headers' => [ |
|
57 | 'X-APIKEY' => $key |
|
58 | ] |
|
59 | ] |
|
60 | ); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Return Guzzle Client |