config) { throw new RuntimeException('There is no config'); } $response = $this->client->request( 'POST', self::ENDPOINT, [ 'query' => [ 'password' => $this->config->getPassword(), 'username' => $this->config->getUsername(), ], ] ); return json_decode($response->getContent()); } }