Intercom\IntercomConversations::replyToConversation PHP Method

replyToConversation() public method

Creates Conversation Reply to Conversation with given ID.
See also: https://developers.intercom.io/reference#replying-to-a-conversation
public replyToConversation ( string $id, array $options ) : mixed
$id string
$options array
return mixed
    public function replyToConversation($id, $options)
    {
        $path = $this->conversationReplyPath($id);
        return $this->client->post($path, $options);
    }

Usage Example

 public function testReplyToConversation()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('post')->willReturn('foo');
     $users = new IntercomConversations($stub);
     $this->assertEquals('foo', $users->replyToConversation("bar", []));
 }