Intercom\IntercomClient::get PHP Method

get() public method

public get ( string $endpoint, string $query ) : mixed
$endpoint string
$query string
return mixed
    public function get($endpoint, $query)
    {
        $response = $this->http_client->request('GET', "https://api.intercom.io/{$endpoint}", ['query' => $query, 'auth' => $this->getAuth(), 'headers' => ['Accept' => 'application/json']]);
        return $this->handleResponse($response);
    }