Example #1
0
 /**
  * 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));
 }
Example #2
0
 /**
  * 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, []);
 }
Example #4
0
 /**
  * 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);
 }
Example #5
0
 /**
  * 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);
 }
Example #7
0
 /**
  * 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);
 }
Example #8
0
 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);
 }
Example #10
0
 /**
  * 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, []);
 }