Intercom\IntercomConversations::getConversations PHP Method

getConversations() public method

Returns list of Conversations.
See also: https://developers.intercom.io/reference#list-conversations
public getConversations ( array $options ) : mixed
$options array
return mixed
    public function getConversations($options)
    {
        return $this->client->get("conversations", $options);
    }

Usage Example

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