rcrowe\Hippy\Transport\Guzzle::__construct PHP Method

__construct() public method

public __construct ( $token, $room, $from, $endpoint = 'https://api.hipchat.com/v1/' )
    public function __construct($token, $room, $from, $endpoint = 'https://api.hipchat.com/v1/')
    {
        $this->token = $token;
        $this->room = $room;
        $this->from = $from;
        // Make sure is actually a URL
        if (!filter_var($endpoint, FILTER_VALIDATE_URL)) {
            throw new InvalidArgumentException('Endpoint is not a URL');
        }
        $this->endpoint = $endpoint;
        $this->http = new Http($this->endpoint);
    }