getLeads() public method

Lists Leads.
See also: https://developers.intercom.io/reference#list-leads
public getLeads ( array $options ) : mixed
$options array
return mixed
 public function testLeadsList()
 {
     $stub = $this->getMockBuilder('Intercom\\IntercomClient')->disableOriginalConstructor()->getMock();
     $stub->method('get')->willReturn('foo');
     $leads = new IntercomLeads($stub);
     $this->assertEquals('foo', $leads->getLeads([]));
 }