/**
  * Creates Conversation Reply to Conversation with given ID.
  * @see https://developers.intercom.io/reference#replying-to-a-conversation
  * @param string $id
  * @param array $options
  * @return mixed
  * @throws \GuzzleHttp\Exception\GuzzleException
  */
 public function replyToConversation($id, $options)
 {
     $path = $this->conversationReplyPath($id);
     return $this->client->post($path, $options);
 }
Example #2
0
 /**
  * Creates Event.
  * @see https://developers.intercom.io/reference#submitting-events
  * @param array $options
  * @return mixed
  * @throws \GuzzleHttp\Exception\GuzzleException
  */
 public function create($options)
 {
     return $this->client->post("events", $options);
 }
Example #3
0
 /**
  * Creates Events in bulk.
  * @see https://developers.intercom.io/reference#bulk-event-operations
  * @param array $options
  * @return mixed
  * @throws \GuzzleHttp\Exception\GuzzleException
  */
 public function events($options)
 {
     return $this->client->post("bulk/events", $options);
 }
 /**
  * Creates Message.
  * @see https://developers.intercom.io/reference#conversations
  * @param array $options
  * @return mixed
  * @throws \GuzzleHttp\Exception\GuzzleException
  */
 public function create($options)
 {
     return $this->client->post("messages", $options);
 }
Example #5
0
 /**
  * Creates a Tag.
  * @see https://developers.intercom.io/reference#create-and-update-tags
  * @param array $options
  * @return mixed
  * @throws \GuzzleHttp\Exception\GuzzleException
  */
 public function tag($options)
 {
     return $this->client->post("tags", $options);
 }
Example #6
0
 /**
  * Converts Lead.
  * @see https://developers.intercom.io/reference#convert-a-lead
  * @param $options
  * @return mixed
  * @throws \GuzzleHttp\Exception\GuzzleException
  */
 public function convertLead($options)
 {
     return $this->client->post("contacts/convert", $options);
 }
 /**
  * Creates a Company.
  * @see https://developers.intercom.io/reference#create-or-update-company
  * @param array $options
  * @return mixed
  * @throws \GuzzleHttp\Exception\GuzzleException
  */
 public function create($options)
 {
     return $this->client->post("companies", $options);
 }