public function testRequestWithEndPointAndApiKey()
 {
     $container = [];
     $client = $this->getClient($container);
     $api = new KlaviyoApi($client, 'thisisakey');
     $response = $api->request('GET', 'api/v1');
     $request = $container[0]['request'];
     $this->assertSame('GET', $request->getMethod(), 'The request should had been GET.');
     $this->assertSame($this->endPoint . '/api/v1?api_key=thisisakey', (string) $request->getUri(), 'The request URI should include the resource and api key.');
     $this->assertInstanceOf(ResponseInterface::Class, $response, 'The response should had been a Response object.');
 }