Intercom\IntercomClient::__construct PHP Method

__construct() public method

IntercomClient constructor.
public __construct ( string $usernamePart, string $passwordPart )
$usernamePart string App ID.
$passwordPart string Api Key.
    public function __construct($usernamePart, $passwordPart)
    {
        $this->setDefaultClient();
        $this->users = new IntercomUsers($this);
        $this->events = new IntercomEvents($this);
        $this->companies = new IntercomCompanies($this);
        $this->messages = new IntercomMessages($this);
        $this->conversations = new IntercomConversations($this);
        $this->leads = new IntercomLeads($this);
        $this->admins = new IntercomAdmins($this);
        $this->tags = new IntercomTags($this);
        $this->segments = new IntercomSegments($this);
        $this->counts = new IntercomCounts($this);
        $this->bulk = new IntercomBulk($this);
        $this->notes = new IntercomNotes($this);
        $this->segments = new IntercomSegments($this);
        $this->usernamePart = $usernamePart;
        $this->passwordPart = $passwordPart;
    }