oAuth2Credential = new InsecureCredentials(); $this->endpoint = $endpoint; } /** * Set a guzzle client to use for requests. * * @param Client $client Guzzle client. */ public function setHttpClient( Client $client ) { $this->httpClient = $client; } /** * Build a HTTP Handler to handle the requests. */ protected function buildHttpHandler() { return [ HttpHandlerFactory::build( $this->httpClient ), 'async' ]; } }