Intercom\IntercomConversations::getConversation PHP Method

getConversation() public method

Returns single Conversation.
See also: https://developers.intercom.io/reference#get-a-single-conversation
public getConversation ( string $id ) : mixed
$id string
return mixed
    public function getConversation($id)
    {
        $path = $this->conversationPath($id);
        return $this->client->get($path, []);
    }

Usage Example

 public function testGetConversation()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('get')->willReturn('foo');
     $users = new IntercomConversations($stub);
     $this->assertEquals('foo', $users->getConversation("foo"));
 }