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