__construct() public méthode

Creates a new API client instance.
public __construct ( React\EventLoop\LoopInterface $loop, GuzzleHttp\ClientInterface $httpClient = null )
$loop React\EventLoop\LoopInterface
$httpClient GuzzleHttp\ClientInterface A Guzzle client instance to send requests with.
 /**
  * @param LoopInterface $loop
  * @param ClientInterface|null $httpClient
  * @param string $dns
  */
 public function __construct(LoopInterface $loop, ClientInterface $httpClient = null, $dns = '8.8.8.8')
 {
     $this->dns = $dns;
     parent::__construct($loop, $httpClient);
 }
 public function __construct(LoopInterface $loop, $token, ClientInterface $httpClient = null)
 {
     parent::__construct($loop, $httpClient);
     $this->setToken($token);
 }