/** * Lists User Events. * @see https://developers.intercom.io/reference#list-user-events * @param array $options * @return mixed * @throws \GuzzleHttp\Exception\GuzzleException */ public function getEvents($options) { return $this->client->get("events", array_merge(["type" => "user"], $options)); }
/** * Lists Tags. * @see https://developers.intercom.io/reference#list-tags-for-an-app * @param array $options * @return mixed * @throws \GuzzleHttp\Exception\GuzzleException */ public function getTags($options = []) { return $this->client->get("tags", $options); }
/** * Returns single Conversation. * @see https://developers.intercom.io/reference#get-a-single-conversation * @param string $id * @return mixed * @throws \GuzzleHttp\Exception\GuzzleException */ public function getConversation($id) { $path = $this->conversationPath($id); return $this->client->get($path, []); }
/** * Returns list of Admins. * @see https://developers.intercom.io/reference#list-admins * @param array $options * @return mixed * @throws \GuzzleHttp\Exception\GuzzleException */ public function getAdmins($options = []) { return $this->client->get("admins", $options); }
/** * Returns single Lead. * @see https://developers.intercom.io/reference#view-a-lead * @param string $id * @param array $options * @return mixed * @throws \GuzzleHttp\Exception\GuzzleException */ public function getLead($id, $options = []) { $path = $this->leadPath($id); return $this->client->get($path, $options); }
/** * Lists Segments. * @see https://developers.intercom.com/reference#list-segments * @param array $options * @return mixed * @throws \GuzzleHttp\Exception\GuzzleException */ public function getSegments($options = []) { return $this->client->get("segments", $options); }
/** * Returns list of Counts. * @see https://developers.intercom.io/reference#getting-counts * @param array $options * @return mixed * @throws \GuzzleHttp\Exception\GuzzleException */ public function getCounts($options = []) { return $this->client->get("counts", $options); }
public function getUser($id, $options = []) { $path = $this->userPath($id); return $this->client->get($path, $options); }
/** * Returns list of Companies. * @see https://developers.intercom.io/reference#list-companies * @param array $options * @return mixed * @throws \GuzzleHttp\Exception\GuzzleException */ public function getCompanies($options) { return $this->client->get("companies", $options); }
/** * Returns single Note. * @see https://developers.intercom.io/reference#view-a-note * @param string $id * @return mixed * @throws \GuzzleHttp\Exception\GuzzleException */ public function getNote($id) { return $this->client->get("notes/" . $id, []); }