| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function __construct(ApiCredentials $credentials) |
||
| 27 | { |
||
| 28 | parent::__construct($credentials); |
||
| 29 | |||
| 30 | $this->client = new Client( |
||
| 31 | [ |
||
| 32 | // Base URI is used with relative requests |
||
| 33 | 'base_uri' => self::BASE_URL, |
||
| 34 | // You can set any number of default request options. |
||
| 35 | 'auth' => [ |
||
| 36 | $this->apiCredentials->getEmail(), |
||
| 37 | $this->apiCredentials->getApiKey(), |
||
| 38 | ], |
||
| 39 | 'headers' => [ |
||
| 40 | 'Content-Type' => 'application/json', |
||
| 41 | ], |
||
| 42 | ] |
||
| 43 | ); |
||
| 44 | } |
||
| 45 | |||
| 68 |